I set up WAMP and set up to do Virtual Hosts, following:
[
forum.wampserver.com]
My info:
Windows 7 - 64 Bit
WampServer Version 2.5 - 64 Bit
Apache 2.4.9
PHP 5.5.12
MySQL 5.6.17
Now, I set up my VH, and when go to the URL, it uses the same files as localhost does, and not the files I put into the directory for the VH.
httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "f:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "f:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin emailaddress@domain.com
DocumentRoot "F:/wamp/www/burke"
ServerName burke
<Directory "f:/wamp/www/burke">
AllowOverride All
Require local
</Directory>
</VirtualHost>
hosts file:
127.0.0.1 localhost
127.0.0.1 burke
::1 localhost
::1 burke
EDIT:
After rebooting my PC, the icon will not go green.
I had not changed anything, so no idea why it will not work at all now.
Did the command propt to check for errors, and got Syntax Ok
EDIT 2:
Found that issue... Skype is using port 80, also, have to shut it off, then start it, after start WAMP services.
Can WAMP be set to any other port than 80?
Windows 7 - 64 Bit | WampServer Version 2.5 - 64 Bit
Apache 2.4.9 | PHP 5.5.12 | MySQL 5.6.17
Edited 2 time(s). Last edit at 07/12/2015 06:17AM by BurkeKnight.