Author |
|
Nicolarecc
Joined: 11 Aug 2013 Posts: 4 Location: USA, Rochester
|
Posted: Sun 11 Aug '13 17:19 Post subject: Virtual Hosts problem with Windows 8 Hosts file |
|
|
Hi,
I am running Apache2.2, PHP5.
I have been running with virtual hosts on a Windows 7 environment fine for a couple of years successfully, but have just had to move to a Windows 8 environment.
It looks like Apache and PHP have installed and are working fine, but my Virtual hosts are now not being recognised. From what I can tell, it is the Windows 8 hosts file that is having a problem, as it looks as though it is now just setup to Block websites.
If I make the host file just have the one line
127.0.0.1 localhost entry, then the very first Virtual Host from my apache config file will come up, but the rest are not found...
If I put the usual 127.0.0.1 mywebsite.name aliasname is appears as though my website works momentarily and then is blocked..
Any help or direction would be appreciated..
Thanks very much
Nicola |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
Nicolarecc
Joined: 11 Aug 2013 Posts: 4 Location: USA, Rochester
|
Posted: Sun 11 Aug '13 19:09 Post subject: |
|
|
Thanks Steffan..
I went down this path earlier, and my netbook has Windows Defenders turned off...
But I will take another look.
Thanks again
Nicola |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 11 Aug '13 20:22 Post subject: |
|
|
In worst case senario I use lmhosts file |
|
Back to top |
|
Nicolarecc
Joined: 11 Aug 2013 Posts: 4 Location: USA, Rochester
|
Posted: Mon 12 Aug '13 17:39 Post subject: |
|
|
Thanks Ajmes.
I guess I don't musch about lmhosts so need to do some reading up on that.. and how to use it.
Thanks again
Nicola |
|
Back to top |
|
Nicolarecc
Joined: 11 Aug 2013 Posts: 4 Location: USA, Rochester
|
Posted: Mon 12 Aug '13 17:40 Post subject: |
|
|
Sorry, that should have read Thanks James! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 13 Aug '13 11:08 Post subject: |
|
|
lmhosts is a little different than hosts file, BUT you can use like the hosts file, also same syntax but most Antivirus apps and stuff ignore this file. by the way there you be an example file lmhosts.sam in the C:\Windows\system32\drivers\etc folder |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 13 Aug '13 11:53 Post subject: |
|
|
You can also try in your httpd.conf:
listen 0.0.0.0:80
Steffen |
|
Back to top |
|