LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Router interception on server down (https://www.linuxquestions.org/questions/linux-networking-3/router-interception-on-server-down-604291/)

kasl33 12-03-2007 10:11 PM

Router interception on server down
 
Here is a quick question that seems like it should be rather easy, but I am not sure of the best way to do it.

Say you go to a website, and it has some text stating that "the server is currently down for maintenance, please come back later."

How do I get it so that when my server is down for maintenance, it displays something like that?

I have a Linksys WRT54G Router and I was thinking that when it forwards port 80 to my web server, if the server is down, it would not forward and would instead it would display that maintenance page?

Thanks for your help in advance!

Kris

farslayer 12-03-2007 10:40 PM

Some CMS systems have that functionality built in. the site admin can take down the site and it will automatically provide that message when the site is offline. not sure how you would do it with an external device without any re-configuration of that device to point at a different web server...

mat2ag 12-04-2007 12:24 AM

you can use dnat to this for you and redirect traffic to another host manually or you can use some load balancing system to this automatically.


All times are GMT -5. The time now is 06:36 AM.