Your Virtual Host definitions are not pointing to the correct place.
Suggested changes to your Virtual Host definitions:
#This VH points to the wamp\www folder and allows you to get to the wamp homepage
#Always assuming yo have not deleted the index.php file from the wamp\www folder.
#It also provides a bit of security, as the first VH definition will be used as the default
#when just your ip address is used, for example by a hacker, because it is set to allow only internal access!
<VirtualHost *:80>
ServerAdmin bryan@pcadvantage.info
DocumentRoot "C:/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/pcadvantage.info-error.log"
CustomLog "logs/pcadvantage.info-access.log" common
<Directory "C:/wamp/www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</Directory>
</VirtualHost>
#This VH points to wamp\www\pcadvantage and is the pcadvantage.info site accessible from the internet
<VirtualHost *:80>
ServerAdmin bryan@pcadvantage.info
DocumentRoot "C:/wamp/www/pcadvantage"
ServerName pcadvantage.info
ServerAlias www.pcadvantage.info
ErrorLog "logs/pcadvantage.info-error.log"
CustomLog "logs/pcadvantage.info-access.log" common
<Directory "C:/wamp/www/pcadvantage">
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
#This VH could be used so you can set up a development version of the pcadvantage site accessible only #from inside your internal network and accessed by the url pcadvantage.dev
<VirtualHost *:80>
ServerAdmin bryan@pcadvantage.info
DocumentRoot "C:/wamp/www/dev-pcadvantage"
ServerName pcadvantage.dev
ServerAlias www.pcadvantage.dev
ErrorLog "logs/pcadvantage.info-error.log"
CustomLog "logs/pcadvantage.info-access.log" common
<Directory "C:/wamp/www/dev-pcadvantage">
Order Deny,Allow
Deny from all
Allow from localhost 127.0.0.1 ::1
Allow from 192.168.0
</Directory>
</VirtualHost>
Your hosts file should look like this
127.0.0.1 localhost
127.0.0.1 pcadvantage.dev
127.0.0.1 pcadvantage.info
Just as an aside, if you are using Apache 2.4.x installed with WAMPServer 2.4 then the Apache syntax for restricting access changed in Apache 2.4
You should use:
OLD SYNTAX
Order Allow,Deny
Allow from all
NEW SYNTAX
Require all granted
OLD SYNTAX
Order Deny,Allow
Deny from all
Allow from localhost 127.0.0.1 ::1
NEW SYNTAX
Require local
OLD SYNTAX
Allow from 192.168.0
NEW SYNTAX
Require ip 192.168.0
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 1 time(s). Last edit at 02/15/2014 05:29PM by RiggsFolly.