Re: hitting apache across home network with hosts file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux