PDA

View Full Version : Site doesn't appear until i restart Apache


rmcompsol
06-10-2005, 12:54 PM
I have checked the settings under "Server Preferences" and they show the Apache Restart Interval is set at 900 seconds (15 minutes). Yet when I create a new domain and upload the files to the proper directory, they don't appear until I manually restart Apache.

When I try and access the site by http//newdomain.com I get the "Under Construction" default page and not the index.htm that I just uploaded.

I thought that I perhaps didn't wait long enough so I ran a test and uploaded files; then waited 2 days. Nope! Still the "Under Construction" page. So I logged into my control panel and restarted Apache. Now it works! What gives?

sholzy
06-10-2005, 02:05 PM
You need to add '.htm' to your Apache config file.

1.) Open /etc/httpd/conf/httpd.conf in a text editor.

2.) Search for DirectoryIndex at_domains_index.html index.html index.html.var index.shtml index.cfm.

3.) At the end of that line add index.htm.

4.) Save :wink:

5.) Restart Apache.
# /etc/rc.d/init.d/httpd stop
# /etc/rc.d/init.d/httpd start

rmcompsol
06-11-2005, 01:09 AM
I have already added the "index.htm" portion to my Apache config file.

The problem seems to be that the index.htm page doesn't appear until after I do a manual restart of Apache. Once I restart Apache, the site works fine.

sholzy
06-11-2005, 07:41 AM
Are you certain Apache is actually restarting after 900 seconds? Do your logs indicate Apache restarting?

I've never had problems with apache (that weren't my fault) in the last 5 or 6 years to even know were to start troubleshooting this. My installs have always worked right out of the box.

You might want to ask about your problem in the comp.infosystems.www.servers.unix newsgroup if you hadn't already.