Question Locked

View sites behind the router

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

3 replies

by churdoo

Whatever is providing the LOCAL DNS resolution on your private LAN needs to resolve the six fully qualified website names (www.site1.com, www.site2.com, 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 (www.site1.com, www.site2.com, etc.) should allow you to browse the sites from the internal network.
--C

by p.ferme

Brilliant, brilliant!

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

Thankyou!

This discussion is closed to new replies.