LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2003, 02:22 PM   #1
rewdbordru
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
Unhappy Apache Question


I'm an extreme newbie and I've just installed Linux 8 and I have Apache server running. I see the initial test page and I can't find it via the terminal. where is that file located?? I want to publish website on the Linux box but I don't know where the files hould go.
 
Old 04-05-2003, 02:27 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
By default your webfiles would be in /var/www/html . If you create index.html in /var/www/html you should see that page pop up instead of the initial test page assuming your httpd.conf file is setup correctly.
 
Old 04-05-2003, 02:30 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
/var/www/html is the default.

A lot of people (my self included) change DocumentRoot in /etc/httpd/conf/httpd.conf to a location on "/home" Usually if your system is partitioned you will have more free space on home to play with.
 
Old 04-05-2003, 02:44 PM   #4
rewdbordru
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I gotchya. Thanks , but I still cannot locate that original test file. I go into the html folder and it's empty.
 
Old 04-05-2003, 02:56 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I believe that specific file is in /var/www/error and its called noindex.html.
 
Old 04-05-2003, 04:19 PM   #6
rewdbordru
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Excellent "Crashed_Again". Thanks a Million. Now why is that particular file the default? Where is that specified and how can I change it.
 
Old 04-05-2003, 04:22 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Just create index.html in /var/www/html

If you don't want to give it the name index.html make sure the filename is in
/etc/httpd/conf/httpd.conf
 
Old 04-05-2003, 04:26 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I think that page is just there to let you know that Apache is working when you first install it. You shouldn't have to edit it at all. If you put an index.html file in /var/www/html then go to http://your.ip.address.here you will see your index.html page.

Last edited by Crashed_Again; 04-05-2003 at 04:27 PM.
 
Old 04-06-2003, 08:47 PM   #9
rewdbordru
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks guys for all of your help, I've got it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question - (apache?) pylon42 Linux - General 7 03-23-2005 07:55 AM
Apache Question Sideshow Linux - Networking 6 02-13-2004 05:31 PM
another apache question peteABK Linux - Software 8 05-27-2003 02:58 AM
Apache question plisken Linux - Software 1 02-25-2003 02:40 PM
apache question davsingl67 Linux - Newbie 1 12-11-2002 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration