Forum Moderators: phranque
I have multiple domains, multiple ip addresses. I want to set them up on just one webserver. Is this possible?
I know that you can make a virtual domain for webservers, and the request that comes from the browser defines to that webserver which domain it wants. But that is not what I want.
I want to know if a browser resolves a domain name to a certain ip address and the request comes down on that ip address to the webserver, then could the webserver logic say "ok, this request came for this ip address so I will send it this site information".
I am currently running tomcat standalone, but am interested in either that or just apache, or whatever, just to know if it is possible.
Thanks in advance.
Zuko
Please let me know if you're doing this with vitrual domains.
I have no problem setting this up on the same ip address, I just want to do this so that certain domains respond to certain ip address requests.
What are you using to configure this? I know the way that I don't want to do it is called "virtual domains". What would be the terminology for this technique?
Thanks again in advance.
Zuko
Marcs,
One last question.
IF you type in a browser the request: [ip.ip.ip.ip...]
where ip.ip.ip.ip is the ip address of each individual website, do you get each respective website that those ip's resolve to from the domain name?
Thanks again.
Zuko
each internal address will be configured on the webserver to serve each respective site. (This is my original howto question that I am still looking for the anwser, otherwise just use hostnames, and use 1 internal address, and for that matter, just use 1 public ip address for all of the domains if you cannot figure out how to configure the webserver to serve sites based on the ip rather than the domain name)
setup pinholes in the firewall where requests for public ip address A on port 80 and 443, go to internal address A, requests form public ip address B, etc.....
make sure though that you open up port 443 or SSL communications will not work.
Zuko
I have multiple domains, multiple ip addresses. I want to set them up on just one webserver. Is this possible
I want to know if a browser resolves a domain name to a certain ip address and the request comes down on that ip address to the webserver, then could the webserver logic say "ok, this request came for this ip address so I will send it this site information".
IIS support SSL certificates for each site as well.
It works great.
I don't know if you understood what zuko105 was saying there or if you even need this at all. Thought this might be a little easier put.
Your firewall has both an External IP and an Internal IP (192.168.0.1 or something). All requests from outside world would enter your firewall via the External IP, however, the firewall/router has the ability to map those requests to internal addresses (192.168.0.2 or something) via it's Internal IP. Your site still appears as External to the visitor, but your router appears as local to your network.
Did that even make sense?
When I buy multiple IPs they will be outside the firewall, but the internal machine still will have 1.
Can't do that, tx. You'll need to assign seperate internal IPs for every site on the machine.
You can't use host headers with SSL. Chicken-and-egg problem - the server needs to secure the connection before it gets to the point where the HTTP headers are transmitted. And if it doesn't know which site is being requested, it won't use the proper certificate.
tx, You'll need to do One-to-One NAT mapping on the PIX. Basically, let's assume you have an internal class C of 10.10.10.10.0/24, and your provider assigned you 192.168.0.0/24 (I realize this is private space, but follow me for a sec). Check it:
Let's assume your DNS has the following entries:
192.168.0.3 - www.widgetco.com
192.168.0.4 - www.pearlwidgets.com
192.168.0.5 - www.widgetsandmore.com
192.168.0.6 - www.bankofjake.com
When you set up the PIX, this will remain unchanged - you'll still assign live IP addresses in DNS. You'll tell your PIX to do one to one NAT mapping, like so:
192.168.0.3 - 10.10.10.3
192.168.0.4 - 10.10.10.4
192.168.0.5 - 10.10.10.5
192.168.0.6 - 10.10.10.6
And then, you'll set your server up with the internal (10.x) addresses. The actual commands used for the PIX are fairly trivial, but probably outside the scope of this topic.
MANY to ONE NAT
I'd do one-to-one with a lot of IP addresses, much like I've described above. You can get as many internal addresses as you need from the available private space that's been allocated by IANA.
Oh, and pretty much any commercial (real) firewall will do what you're looking for. I'm a fan of the PIX for solid-state stuff, and like to roll my own BSD boxes on occasion as well.