View sites behind the router

By p.ferme ·
I have set up a Centos Web host mail server. It serves about six sites from the one IP address using Apache. Nothing new.

It sits behind a router which obviously turns the public IP into a private one. So when you type in the private address of the server (when you are on the private LAN) the first site in httpd.conf appears.

What i wish to know is. How do i see the other six sites on my browser if i am behind the router on the private IP range? If I try using the www address it cannot find the site.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

DNS or Hosts file

by Churdoo In reply to View sites behind the rou ...

Whatever is providing the LOCAL DNS resolution on your private LAN needs to resolve the six fully qualified website names (,, etc.) to the PRIVATE IP instead of the public.

Otherwise, if you're not using an Internal DNS server, you can modify your HOSTS file to resolve the six site names to the PRIVATE IP of your mail server.

The combination of resolving to the Private IP, plus the host header from the browser (,, etc.) should allow you to browse the sites from the internal network.

Collapse -


by p.ferme In reply to DNS or Hosts file

Brilliant, brilliant!

I knew it would be staring me in the face.
That is why I could not see it...


Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums