View Full Version : Redirecting to another webserver
12th September 2005, 18:07
Hi there, yet another new person to linux and i have to say ISPConfig is excellent and made my life very easy, one question though... i have another webserver on my lan and i would like to access it from the internet, currently ispconfig is setup as my default, what would i need to do so that a request for a domain could be sent to my other webserver? if you can help it would be greatly appreciated....p.s appologies now, i've been brought up on windows, linux is very new to me...
12th September 2005, 20:24
You would have to get over a few hurdles to do this. I haven't actually tried to run multi-servers in a single network. One thing you would have to consider is that the server you are running ISPC on is taking requests from port 80. That means your other server will need to take requests from a different port. It can not be port 81 because ISPC uses port 81, unless you change the port where ISPC listens to.
Thats where you router comes into play. You need to forward requests to and from ISPC server 1 and also server 2. For my own home network config, I have my router forward port 80 to the Linux server. In order for my second server to take requests, I would have to forward the requests to server 2 on port 8080.
It would be allot more simple IF I had 2 different IP leases though :). You would have more room to work with if I had more than 1 IP address on my DSL modem. Of course, your scenario would be different. It all depends on your network setup.
PS. With some searching and researching, I'm sure there are other ways around it. But from what I wanted to do, forwarding the IP address from the registrar to a multi-IP home network would be the easiest but not necessarily the cheapest.
12th September 2005, 23:37
Hi Domino, thanks for the help... i may have to look into that, it seems another alternative is to reverse proxy, by using apache on another pc or squid, have you heard of anyone having any luck with this scenario or am i barking up the wrong tree?
13th September 2005, 06:21
I have never actually had the opportunity to use squid. Another way you might be able to work with it is if your router supports NAT (network address translation). You might have to muck with NAT a few times to get it to do what you want. But I'm assuming it would be much simpler than tinkering with squid. :D
15th September 2005, 14:12
You can also use Pound as a means to redirect traffic based on hostnames. Check out Apsis website (http://www.apsis.ch/pound/index_html), and see what it can do for you.
Apsis states they don't fancy doing virtual hosting in Pound, but if you need to reroute traffic for a certain domain to a different IP on another machine, it works. All traffic runs through the main server, but that shouldn't be too much of a problem on low-traffic sites...
15th September 2005, 15:00
Nice info farao. Thanks!
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.