Forum archive
Wrapping my brain around apache2 and serving from one IP
I'm reading all the howtos to set up /etc/apache2/available-hosts/ using promix and turnkey containers.
I remain just a bit confused. Each container has it's own virtual IP address. The proxmox install currectly has the static public IP addressed and assigned to it. That works. Now, what is the best way to configure things so that apache2 routes incoming requests to the proper internal IP addresses and then become passed back to the net through the single IP address? If someone if familiar with this I have googled my backside off and need a nudge in the right direction for this network newbie. Thanks! Ric
Sounds like what you need is a reverse proxy. This will allow you to point all your omain names to your external IP and the reverse proxy can sort which domain (or sub domain) gets routed to which internal IP. Apache (or other webserver such as LigHTTPd or NginX, etc) can be configured to act as a reverse proxy on one of your existing VMs or you can set up a dedicated reverse proxy. Squid can also be configured as a reverse proxy from what I've read and another one that I have heard is really easy to configure and use is Pound (available from the repos),