Abu Mami
03-20-2002, 02:45 AM
Hi,
Small problem which I assume has a simple answer...
I have a dedicated server with several sites on it. I would like to disable one site for maintenance. What's the BEST way to do this?
I could change the name of the directory and create a new directory (with the original name) with an HTML page explaining to the user that the site is down.
Is there anything wrong with this method? Is there another way that may be better for some reason I as of yet don't realize?
Thanks in advance.
WebmastersHost
03-20-2002, 02:58 AM
The easiest way would be to rename the current index file and upload a static page explaining the maintenance situation.
Or you could alter the DocumentRoot path to a directory somewhere else on your server in the httpd.conf file.
i.e.
<VirtualHost #.#.#.#>
ServerAlias www.domain.com domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain/public_html
BytesLog domlogs/domain-bytes_log
ServerName www.domain.com
CustomLog domlogs/domain combined
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>
clocker1996
03-20-2002, 11:08 AM
Originally posted by Abu Mami
Hi,
Small problem which I assume has a simple answer...
I have a dedicated server with several sites on it. I would like to disable one site for maintenance. What's the BEST way to do this?
I could change the name of the directory and create a new directory (with the original name) with an HTML page explaining to the user that the site is down.
Is there anything wrong with this method? Is there another way that may be better for some reason I as of yet don't realize?
Thanks in advance.
please check your private message
Abu Mami
03-20-2002, 11:15 AM
Originally posted by ccreighton
The easiest way would be to rename the current index file and upload a static page explaining the maintenance situation.
Or you could alter the DocumentRoot path to a directory somewhere else on your server in the httpd.conf file.
I'm of the easy persuasion. Thanks.
Abu Mami
03-20-2002, 11:18 AM
Originally posted by clocker1996
please check your private message Ya' know something, I never check my private messages. It's a good thing you pointed this out. I probably insulted a few people in the past because I didn't get back to them.
Seems to me that a better way is needed to indicate private messages received.