httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Brown <br...@mrvideo.vidiot.com>
Subject Re: [users@httpd] virtual hosting not working
Date Mon, 14 Jul 2008 00:58:04 GMT
On Sun, Jul 13, 2008 at 08:33:58PM -0400, Frank Gingras wrote:
> Mike,
>
> The output looks good.
>
> I can even reach http://www.vidiot.com/ and http://www.vidiot.com/TVShows/ 
> from here.
>
> The problem you're most likely experiencing is that www.vidiot.com resolves 
> to 75.100.112.198 (your public IP). So a request to that host is routed to 
> the external interface of your router, then not re-routed properly inside 
> your LAN.

Found out what is going on.  The lookup of vidiot.com says that it needs to
go outside of the box.  Fine and dandy.  What is wrong is that the DSL
modem/router knows that it is that address.  When it gets a request from the
LAN, it keeps it and points the http request at the internal DSL web server.
An http request coming in from the WAN port, is routed to 192.168.1.1, as
configured.

> What you need to do is make all the values of ServerName and ServerAlias 
> resolve to your local IP, via your local DNS subsystem, or your hosts file. 
> Your problem will be resolved then.
>
> Alternately, you could configure your router to add a few routes to prevent 
> the request from going out at all.

I'm not sure which of the two I'll do.  Whatever I do has to not break other
things, like mail :-)

MB
-- 
e-mail: vidiot@vidiot.com                                /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email

---------------------------------------------------------------------
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


Mime
View raw message