[c-nsp] How to use multiple virtual web servers with one 1 public IP address?

Mark Tees marktees at gmail.com
Tue Apr 26 20:24:26 EDT 2011


Another solution may be to use Mod_Proxy for Apache and proxy off requests
to virtual machines behind the proxy HTTP server.

There is an example on this page:
http://httpd.apache.org/docs/2.0/vhosts/examples.html

<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass / http://192.168.111.2/
ProxyPassReverse / http://192.168.111.2/
ServerName hostname.example.com
</VirtualHost>

I believe that would match the hostname hostname.example.com on the incoming
request and proxy it off to 192.168.111.2 preserving the hostname as it is
passed along.

http://httpd.apache.org/docs/2.0/vhosts/name-based.html


More information about the cisco-nsp mailing list