Can I host two separate web servers on the local network for the outside world through 1 IP address?

I am a web programmer with home web development. I have several web servers in my home on a FIOS connection. I have my own domain pointing to my router through the dyndns.org custom domain service.

My provider gives me ONE static IP address, which currently allows me to configure my router to direct outgoing web traffic from one server through port 80 and another server through port 8080. This sucks because many companies block port 8080 in these days as a result of which some of my corporate clients will not be able to get to my second web server.

Is there any way to redirect the plain old port 80 of web traffic to the TWO SEPARATE web server inside my network using two different host names?

For example. I want http://webserver1.mydomain.com hit one web server on my network and http://webserver2.mydomain.com to get to another web server and have both sets of traffic served on port 80.

Is it possible? If not, can I hack software routing of traffic from one web server transparently to another?

For the record, I run the IIS 7.0 MS Windows Server 2008 stacks, the DIR-DIR-655 DIR server and use DynDNS for my domain needs.

+6
source share
6 answers

The name of the solution you are looking for is called a reverse proxy server.
There are versions in apache , squid and Mircosoft ISA Server .

If your adventure person can always roll on their own? or change something like this to suit your needs.

I had clients using the squid reverse proxy, which is large in volume and works great!

Typically, you will clone your weblogs on a web server, although all traffic will come from your internal proxy server, which redirects / rewrites.

+7
source share

Yes, use the IIS7 rewrite module for this

+2
source share

Perhaps something like application-level routing. This article shows how to do this on an ISA server (using web rules).

http://www.codinghorror.com/blog/archives/000984.html

+1
source share

Perhaps you can configure apache with two vhosts, and then in each of your blocks put the proxy of the corresponding site on your local network:

In vhost 1:

 ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://192.168.0.49/ ProxyPassReverse / http://192.168.0.49/ 

In vhost 2:

 ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://192.168.0.50/ ProxyPassReverse / http://192.168.0.50/ 

You will need mod_proxy , and I'm not even sure if this will work

+1
source share

Why not keep it simple and easy to order or request a second IP address in your account? This, apparently, is much simpler than complex hardware and / or software configuration. Just don’t tell them that you host websites, because Internet service providers usually don’t like people doing this on their home accounts (I’m really surprised that they don’t block port 80).

0
source share

This is an old post, but I have the same problem. Verizon only gives you 1 ip. If you need more, you should use your business plan for about $ 100 a month. I have a redhat and windows 2008r2 home server running. I have 2 godaddy domain names pointing to my verizon wan IP address. My Windows server uses port 80 for mysite1.com and my linux port 8080 for mysite2.com. I do not use DYN because I want to use my own domain names. I made an IIS site host to direct mysite2.com to my Linux module. Both domains work on the Internet, but by typing in mysite2.com directs to mysite2.com:8080 in the browser window url. I don’t think there is a way to hide 8080. At least not right. I work for a government agency and they block sites that use port 8080. They also block domains that are redirected using masking / frame. Thus, masking 8080 will block your site. The best solution for Verizon offers 2 IP addresses at a reasonable price for people like us!

0
source share

All Articles