Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changint the Apache default page location

Status
Not open for further replies.

jdeane

IS-IT--Management
Sep 21, 2001
229
GB
How do I change the location of where Apache looks for index.html so that when a user enters it will call up my index.html file.

Thanks

Jonathan
 
Hi,

Just edit your httpd.conf file (e.g. /etc/httpd/conf/httpd.conf on redhat) and change the DocumentRoot :

DocumentRoot "/var/
Then restart apache or cause it to read your config changes with :

# killall -HUP httpd


Hope this helps
 
I have checked the httpd.conf file and it is pointing to /var/
However if I replace the index.html file with my own it will still bring up the default Apache test page.

I have stopped and started Apache which makes no difference.

Any ideas??

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top