Hi
Why have you got localhost defined twice? Define a Virtual host only once.
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/domain1"
ServerName domain1.com
ServerAlias www.domain1.com
<Directory "c:/wamp/www/domain1">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
# The folder holding each domain should be unique
# Unless you expressly want to server 2 domains from one folder
DocumentRoot "c:/wamp/www/domain2"
ServerName domain2.com
ServerAlias www.domain2.com
<Directory "c:/wamp/www/domain2">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
The HOSTS file
127.0.0.1 localhost
::1 localhost
127.0.0.1 domain1
::1 domain1
127.0.0.1 domain2
::1 domain2
---------------------------------------------------------------------------------------------
(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 01/30/2017 11:32AM by RiggsFolly.