httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonesy <gm...@jonz.net>
Subject [users@httpd] Re: hitting apache across home network with hosts file
Date Fri, 29 Jan 2010 19:31:06 GMT
On Thu, 28 Jan 2010 14:29:20 -0600, Matthew Smith wrote:
> --0016e6d64956eaf544047e3f60b6
> Content-Type: text/plain; charset=ISO-8859-1
>
> I understand that.  I am only trying to access the server from the windows 7
> machine.
>
> To clarify:
> server, 192.168.1.2, running apache
>
> Windows 7 machine, hosts file modified to:
> 192.168.1.2 mysite_com
> Windows 7 machine unable to load http://mysite_com/ in browser.

hmmmm...
Something un-obvious is working against you....

We are webmasters for a number of web sites here.
They are variously example.com , or .net , or .org

In the hosts file on the windows and linux boxen here we have:

192.168.1.35            www.example.tst example.tst
192.168.1.35            www.example2.tst example2.tst
192.168.1.35            www.example3.tst example3.tst
192.168.1.35            www.example4.tst example4.tst

 for all the various domains -- pointing to a local box running LAMP 
with all the domains replicated thereon.  IJFW here.

Perhaps your browser(s) are attempting to be 'helpful' and are adding 
the ".com" suffix to the truncated domain name in the location bar? (By 
default, most do that.)  That would result in a dns lookup failure.  
Perhaps the error reporting back to you in the browser is not specific 
enough -- telling you it could not find "mysite_com" -- when, indeed, it 
could not find "mysite_com.com".

HTH
Jonesy
-- 
  Marvin L Jones    | jonz          | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm


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