Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

needed>automatic "site is down" page
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Apache
View previous topic :: View next topic  
Author Message
felipe



Joined: 19 Jul 2006
Posts: 4

Posted: Sun Jul 23, 2006 6:01 am    Post subject: needed>automatic "site is down" page  

My site is down, and I want an "site_is_down.html" page pop up when anyone requests *ANYTHING* from my apache server.

I tried to search for "server AND down" but was unable to find anything that matched what I was looking for.

I could probably do it with virtual hosts, but I'm lazy to set them up. I don't want to have to #comment# them out when I'm live, and then uncomment them when I'm down. I would imagine there is a one-liner or two-liner that would do what I'm looking to do.

Also, I tried the code below, but this doesn't prevent someone from going to http ://www.mydomain.tld/different_page.html

Code: Redirect temp / http://www.mydomain.tld/site_is_down.html
Can anyone help me, or give me some pointers on directives i could use to accomplish this?

edit: i tried the "redirect" code again, but instead it just made an infinite loop, trying to find the file, but then getting redirected to a file on the server, which tried to redirect once again ........ that was stupid :lol:
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Apache
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group