Say you’re poor and only have one IP address. If you have the ability to control your own DNS, there’s an easy fix.
- Install Apache on one of your servers on Port 80
- Add this to the bottom of the Apache httpd.conf file
ServerName myapp.mydomain.com ProxyPass / http://internal.mydomain.com/ #TransferLog /net/www/logs/sun.docs.access #ErrorLog /net/www/logs/sun.docs.errror
This will work to forward requests to many backend servers. Just keep in mind that the IP addresses from the outside won’t show up in your logs. There are ways around that though.