Re: hitting apache across home network with hosts file

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

 



I understand that.  I should have made myself more clear.

I have modified the windows 7 machine host file to the following:
192.168.1.2 mysite_com

On Thu, Jan 28, 2010 at 1:26 PM, Programmer In Training <pit@xxxxxxxxxxxxxxxxxxx> wrote:
On 1/28/2010 1:15 PM, Matthew Smith wrote:
> In the past I just had one machine.  I ran apache on it.  I modified the
> hosts file to point aliases to the local box.
>
> 127.0.0.1 mysite_com So in my browser, I could type in: mysite_com
> (underscore instead of dot) and bring up the site. Now I have a new box
> running windows 7 that will be the machine I use for dev.  I have
> assigned the server a static Ip of 192.168.1.2 and the computer name
> "server".
>
> I have modified the conf file to listen to ip 192.168.1.2 I have tried
> to modify the hosts file on the win 7 machine with the following
> different things: server   mysite_com \\server   mysite_com
> 192.168.1.2   mysite_com All of these fail to bring up the site.  I can
> remote desktop to the machine via its ip or name. What am I doing wrong?

The hosts file is only for the local machine. It does not redirect to
another machine nor work on any other machine.

--
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.



[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