Re: apache behind a fw
On Wed, Jul 18, 2001 at 02:13:19AM +0200, Diego Torres wrote:
> i need to serve webpages under a domain (example.com), but i
> have a problem. the machine with the external ip is a fw, that
> does port forwarding to the apache box. this is not a very big
> problem, but gets really annoying when i need to test the
> server from inside the internal network. using example.com as
> the domain leads to a route error, so i need to use the internal
> ip of the apache box (and all the references to the domain
> name on the webpages don't work). is this usual? how does a
> isp setup apache & router to make the server work with the
> domain name from inside the fw?
use /etc/hosts on your internal machine.
setup a local domain on the internal dns server with internal IPs.