i am using portfoward on my debian server/router/firewall to reach a server behind it.
with the port forward on the firewall i have source ip=all, public port=1234 (but can be anything from 1024 to 65535), private port=80, private ip=<private.ip.of.server.behind.firewall>.
then one can reach the backend server with http://<yourdomain>.com:<public.port.number>
port forward for the second server ip=all, public port=1235 (but can be anything from 1024 to 65535), private port=80, private ip=<private.ip.of.second.server.behind.firewall>.
for example you can reach my backend server with http://alonzofretwell.com:1234
with public port set to 1234. my second backend server is at http://alonzofretwell.com:1235
the portforward method is the quick and dirty method. a more elegant solution is to configure a reverse proxy server on the gateway/server/router machine that you are behind.
imo squid configured as a reverse proxy server is the most elegant method but you can use apache.
here is a link to a thread that discusses setting up a reverse proxy server for this purpose. http://www.linuxquestions.org/questi...ptions-795388/
at present my goal is learning how to setup squid as reverse proxy server. so i am just learning to setup a revers proxy server.