Multiple domains, one IP
-
Shameless self-bump, hoping someone has some insight.
-
I know of a site that uses Wampserver on one machine to serve a dozen sites… Are you talking one server or several behind your router?
-
Currently I have a vmware server running behind my pfsense, with currently three different servers with different services (ssh, apache, ftp, etc).
And the problem is I only have one official IP from my ISP.So the case is I want xyz.com to be redirected to server 1 regardless of service requested, and zxy.com to be redirected to server 2 regardless of service requested.
(As long as I have specified the service). -
Currently I have a vmware server running behind my pfsense, with currently three different servers with different services (ssh, apache, ftp, etc).
And the problem is I only have one official IP from my ISP.So the case is I want xyz.com to be redirected to server 1 regardless of service requested, and zxy.com to be redirected to server 2 regardless of service requested.
(As long as I have specified the service).That will not work. The only reason it could work with HTTP is because it sends a host header that a proxy can deal with. SSH, FTP, and most other protocols do not work that way.
-
Jim's right, but as an add-on: The only workaround for this with one external IP is to use nonstandard ports and forward them to the services on each box. So port 22 for SSH to internal server 1, port 222 (or take your pick) for SSH to internal server 2, etc. FTP may not work properly at all doing this but it might, I haven't tested it. SSH and HTTP you can for sure, just have to make sure to access it at the nonstandard port. pfSense can translate a nonstandard external port to a standard internal one so you don't need to change the servers themselves to do this.
-
Yeah, that's the config I have per today, I will have to try with multiple interfaces to see how many IP's I can squeeze out of my ISP.
-
Use a L7 capable box behind PFSense…..
-
Just a question. If they are all running on the same machine why not use apache virtual hosts? Security concerns?
-
Not the same machine, different virtual machines running under ESX Vsphere.
-
Guess you are going to need your own subnet then.