February 2nd, 2012, 09:00 AM
Strange Apache problem.. localhost don't work localhost.dev does!
so I tried adding another virtualhost (dan) to C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf, and adding 127.0.0.1 and localhost.dan to my HOSTS file.
So, it didn't work. And I tried loading my other 2 hosts: localhost and localhost.dev. Localhost.dev works when I load it in any web browser. My problem is that localhost doesn't work. It says:
I don't understand why localhost.dev works but localhost doesn't. So I would really appreciate any help on this, as my apache knowledge is extremely limited.
No connection could be made because the target machine actively refused it.
February 2nd, 2012, 09:31 AM
It turns out that because I have Apache and MySQL services starting manually, localhost didn't load because it is MySQL driven. So, simply starting MySQL solved the problem, and I've also added the extra virtual host.