You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Konstantinos Chandrinos <ko...@iit.demokritos.gr> on 2004/01/28 15:47:14 UTC

[users@httpd] Virtual hosts 2 IPs

Hello everybody,

I am running out of brain here, so I thought maybe I could borrow some..

A redhat box running Apache 2 is supposed to serve a company's Web
content. The RH box has internal IP 192.168.0.x and is nat'ed with
proper port forwarding, with external IP 202.x.x.x.

So, I dig into the manuals and I give it a try:

Listen 80

NameVirtualHost 192.168.0.x
NameVirtualHost 202.x.x.x

<VirtualHost 192.168.0.x 202.x.x.x>
ServerName www.companyX.com
blah, blah, blah
</VirtualHost>

The local clients get DNS from a Windows box which has entries for
www.companyX.com to be mapped to 192.168.0.x and no forwarding of the
DNS query upstream.

The whole world can view the site. What's the problem then? Well, the
problem is that the internal clients cannot view their own company's
Website! They can ping the RH box, they can view content from other
servers, on other ports, but no Apache. When I manually tune them to
query an external DNS, they view the site perfectly. When they use their
internal, it's a no-no.  I have tried the _default_ trick. No avail.

My /etc/hosts/ has only the 127.0.0.1 entry if that is of any use.

Obviously, I have missed the obvious. Would you be kind enough to point
it out?

Thanks in advance,
Kostas



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org