LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2003, 07:21 AM   #1
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
apache test page is hideing


I installed apache webserver at install time for my red hat 8.0 server. I configured apache correctly to just respond to my outside ip address <not 127.0.0.1>. However, I went to copy my webpage to the /var/www/html/ directory, and there were only more directories in it <such as manual, etc.> but no index.html. I tried copying my web page to it anyways, named it index.html, and it still wont come up by default, I have to physically type "http://<ip address>/index.html to have it come up. If I just type the ip address, it comes up with the test page. I have the document root set to /var/www/html, and the default home page set to index.html. I tried searching for any other files named index.html on the computer, but could not find the test page. Does anyone know how to fix this besides reinstalling the whole computer, I tried to rpm out the httpd, then put it back, but to no avale
 
Old 05-28-2003, 07:43 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
What does your DirectoryIndex line hold in httpd.conf? It sounds all a bit weird to me like it might be an problem in your apache config. Post a copy of httpd.conf if possible. Also can you lookup and reverse lookup your name/ipaddress - and does this correspond to the ServerName value that you have set in httpd.conf?

cheers

Jamie...
 
Old 05-28-2003, 08:12 AM   #3
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
in httpd.conf it had:

DirectoryIndex

and that was it. so I just added:

DirectoryIndex "index.html"

and it works! how come on some installations, it had thatline correct, but on this, the default was nothing? Well, thanks for the help!!
 
Old 05-28-2003, 08:59 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Glad you got it working. I've never seen an Apache that didn't have "index.html" by default.

cheers

Jamie...
 
Old 05-28-2003, 03:26 PM   #5
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
All I got to do now is compile my kernel with acpi support so it will cut off instead of saying "power down"
 
Old 06-29-2003, 12:49 PM   #6
jgilels
LQ Newbie
 
Registered: Jun 2003
Location: Texas
Posts: 10

Rep: Reputation: 0
Thank you both for your problem/solution

I had exactly the same problem with Apache 2.0.40. When using the graphical interface to reconfigure httpd, it wipes out all manually-configured everything and starts over, if you're not careful. Well, I wasn't careful, and couldn't figure out for the life of me what the heck happened. Thanks so much for the simple solution. Whew! Back in bidnith.



Quote:
Originally posted by hotrodowner
in httpd.conf it had:

DirectoryIndex

and that was it. so I just added:

DirectoryIndex "index.html"

and it works! how come on some installations, it had thatline correct, but on this, the default was nothing? Well, thanks for the help!!
 
Old 06-30-2003, 02:36 PM   #7
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
Talking

Thats what group forums are for!!!
 
  


Reply



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
Apache test page mpalazzini Linux - Software 2 10-03-2004 10:13 AM
Apache test page mpalazzini Linux - Newbie 4 10-03-2004 12:21 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
Sorry, that Apache test page is at it again. Hal Linux - Newbie 4 10-26-2003 05:53 PM
Apache test page...Now what? Hal Linux - Newbie 6 10-24-2003 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:42 PM.

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