In Apache2, is it possible to bind a VirtualHost
to a different IP interface than other virtual hosts, or the server's default Listen
address?
The goal is to have a web server that serves some public sites serve some Intranet sites over a VPN interface as well.
I suppose another approach would be to make an .htaccess
file that requires passwords from everyone except VPN source addresses, but I would really prefer to be extra careful on that and just not make the sites publicly accessible in the first place.
Thank you very much in advance!
Why not try like this (if you have access to the apache2 conf file,do you?)
You have to be
Listen
ing on all the interfaces and ports that all of your vhosts are going to be visible on. Then the address portion of theVirtualHost
limits to which address serves out which site. Named based vhosts are even better for security, as the server name in the URL will further enforce which content comes out of which address.