How To Handle Multiple Internal Servers With Single Public Ip

emetib

New member
Joined
Mar 11, 2011
Messages
3
Location
USA
Hi

I'm quite new to this area so thanks for your support.

I know I can have multiple websites with different domains hosting in the same server. (which I have working)

My situation is a little different now. Not sure if this is possible.

My friend created a hyper-v for me pointing to a public IP

I loaded Xampp and began to host web sites.
httpd.config
Listen [::]:80
ServerName localhost:80
DocumentRoot "C:/xampp/htdocs"
10.0.2.220
(This server is up and working)

I have now created a Centos5 ISPconfig server on the same hyper-v with a different private ip to host Centos5 python/django/pinax web sites.
ISPconfig:8080
httpd.config
Listen 80
UseCanonicalName Off
DocumentRoot "/var/www/html"
10.0.2.121
(This ISPconfig server can only be accessed at
http://10.0.2.121
http://10.0.2.121/phpmyadmin
http://10.0.2.121:8080)

What Server configuration would I need in order to run multiple internal web servers on one hyper-v with single public IP?
 
You can run more than one web server on the same IP.

All web servers can listen on port 80 and will respond to internal requests via internal IP. For what you want to do you might want to look into mod_proxy to forward specific requests to each server.
 
You can run more than one web server on the same IP.

All web servers can listen on port 80 and will respond to internal requests via internal IP. For what you want to do you might want to look into mod_proxy to forward specific requests to each server.
Thanks I'll google that
I was thinking
server1 on port 80
server2 on port 8080
 
Back
Top