logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Hosts problem with Windows 8 Hosts file
Author
Nicolarecc



Joined: 11 Aug 2013
Posts: 4
Location: USA, Rochester

PostPosted: Sun 11 Aug '13 17:19    Post subject: Virtual Hosts problem with Windows 8 Hosts file Reply with quote

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: 3057
Location: Hilversum, NL, EU

PostPosted: Sun 11 Aug '13 18:35    Post subject: Reply with quote

Have a look at http://winhelp2002.mvps.org/hostswin8.htm

Maybe there is a clue, like disabling defender.
Back to top
Nicolarecc



Joined: 11 Aug 2013
Posts: 4
Location: USA, Rochester

PostPosted: Sun 11 Aug '13 19:09    Post subject: Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Sun 11 Aug '13 20:22    Post subject: Reply with quote

In worst case senario I use lmhosts file Wink
Back to top
Nicolarecc



Joined: 11 Aug 2013
Posts: 4
Location: USA, Rochester

PostPosted: Mon 12 Aug '13 17:39    Post subject: Reply with quote

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

PostPosted: Mon 12 Aug '13 17:40    Post subject: Reply with quote

Sorry, that should have read Thanks James!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Tue 13 Aug '13 11:08    Post subject: Reply with quote

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: 3057
Location: Hilversum, NL, EU

PostPosted: Tue 13 Aug '13 11:53    Post subject: Reply with quote

You can also try in your httpd.conf:

listen 0.0.0.0:80

Steffen
Back to top


Reply to topic   Topic: Virtual Hosts problem with Windows 8 Hosts file View previous topic :: View next topic
Post new topic   Forum Index -> Apache