You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by RICARD Jasmine <RI...@iata.org> on 2005/03/16 18:23:24 UTC

[users@httpd] Night page

Hi,
 
I'm new with Apache and been able to setup my Virtual host.  I have to
redirect the http to a maintenance page everyday at 6PM and back to normal
production (login htm page) every morning at 8AM.
 
What is the best way??
 
Yet I've created a httpd.conf file for production and another one for
maintenance.  I have a script that change the httpd.conf file and then stop
and start apache at 5 seconds interval.
 
So far everything went well but once, there was a user trying to connect
while my script was running, it did the first part of the script (copy the
httpd.conf file and then stop apache).  The last part of my script is to
start apache with the copied httpd.conf but it just didn't occur, instead I
got a daemon message as follow 
 
"httpd (pid 1089608) already running"
 
There was no message in the error_log about apache not being able to start.
 
Any idea?
 
Thanks
 
 
Jasmine Ricard
Trainer / IT Tech specialist
Tel:  +1 (514) 874-0202 ext. 3475
Fax: +1 (514) 874-1699
ricardj@iata.org <ma...@iata.org> 
 
International Air Transport Association
800, Place Victoria, P.O. Box 113
Montreal, Quebec, Canada, H4Z 1M1
 <http://www.iata.org/> www.iata.org
 
 

Re: [users@httpd] Night page

Posted by Noah <si...@onastick.net>.
On Wed, Mar 16, 2005 at 12:23:24PM -0500, RICARD Jasmine wrote:
> Hi,
>  
> I'm new with Apache and been able to setup my Virtual host.  I have to
> redirect the http to a maintenance page everyday at 6PM and back to normal
> production (login htm page) every morning at 8AM.
>  
> What is the best way??

Use mod_rewrite; check 'Time-Dependend (sic) Rewriting' at
http://httpd.apache.org/docs/misc/rewriteguide.html for details.

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org