• May 18, 2025, 04:23:01 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: possible to have secondary web server?  (Read 3293 times)

Toxxico

  • Level 1 Member
  • *
  • Posts: 1
possible to have secondary web server?
« 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?
Logged

Alein_3rd

  • Level 1 Member
  • *
  • Posts: 12
Re: possible to have secondary web server?
« Reply #1 on: May 07, 2010, 06:10:00 PM »

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.


Logged

bigeyes0x0

  • Level 3 Member
  • ***
  • Posts: 163
Re: possible to have secondary web server?
« Reply #2 on: May 07, 2010, 09:38:28 PM »

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 (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.
Logged