D-Link Forums
The Graveyard - Products No Longer Supported => Routers / COVR => DIR-655 => Topic started by: Toxxico on May 06, 2010, 06:37:37 AM
-
Hey,
I have set up a http/ftp server on my DIR655. Now I was thinking that if I turn my server off for some reason the users will only see that they cant connect and not get any idea why. So I was thinking of making a secondary server that if my primary gets turned of my router will automatically port forward to secondary.
Basically I want the secondary to have a page that says "sorry but my server is offline, contact me if you have urgent need"
Is any of this possible? or do I have to make the port forwarding manually?
-
No, unless such option will be implemented in firmware.
Perhaps if you have 2 servers you should use load balancing http server (lighthttp) and clusters for sql?
I have never meet such option, perhaps reason why is that normally you never use secondary server in this case, I mean for a lot of time it become useless server. Servers should work 24/7 so no big deal. But what you are trying to do is possible for DNS. For example free domain services like no-ip.com. Just setup domain and in option setup Offline Options Web Redirect if on this same IP use different port for http server and forward this port on different internal IP. But I recommend free web hosting server, or better friend server.
-
Why not write a script to turn off your server and switch configuration file and then start it again, with another script to do the reverse? Quite simple IMO.
Or if you wanna run them concurrently you might want to use Alein_3rd's solution, or Varnish (http://www.varnish-cache.org/) (you can run an apache server that serves on two different ports to Varnish with different content, with one as primary), or Heartbeat with two physical servers for fun, this way you can yank the power on your main server for some coolness.
P.S. I was bored so some crazier idea for you :D.