Hi All,
I want to set the maintanance page for our site when Application server goes down
I set Rule
RewriteRule ^/$ /maintenance.html [L,NE]
in httpd.conf on our web server in <VirtualHost *:80>
so that every request should redirect to maintenance.html
But the problem is for the first time when user hit the browser is show 503 error page and on refresh or next it
it goes to the maintenance.html.
our app run on https and we have the ssl.conf include in httpd.conf
Any body know why this show 503 on first hit ?
below is my rewite log
ip - - [07/Jun/2012:00:32:40 --0700] [myhostname/sid#2b32fe4
a7db8][rid#2b330a4666e0/initial] (2) init rewrite engine with requested uri /
ip - - [07/Jun/2012:00:32:40 --0700] [myhostname/sid#2b32fe4
a7db8][rid#2b330a4666e0/initial] (3) applying pattern '^/$' to uri '/'
ip - - [07/Jun/2012:00:32:40 --0700] [myhostname/sid#2b32fe4
a7db8][rid#2b330a4666e0/initial] (2) rewrite '/' -> '/maintenance.html'
ip - - [07/Jun/2012:00:32:40 --0700] [myhostname/sid#2b32fe4
a7db8][rid#2b330a4666e0/initial] (2) local path result: /maintenance.html
ip - - [07/Jun/2012:00:32:40 --0700] [myhostname/sid#2b32fe4
a7db8][rid#2b330a4666e0/initial] (2) prefixed with document_root to /var/www/htm
l/maintenance.html
ip - - [07/Jun/2012:00:32:40 --0700] [myhostname/sid#2b32fe4
a7db8][rid#2b330a4666e0/initial] (1) go-ahead with /var/www/html/maintenance.htm
l [OK]
So ....
ISSUEE >> local path result: /maintenance.html 500
WORK FINE >> /var/www/html/maintenance.html [OK]