Hi,
Did you find the "Add a Virtual Host" link on the WAMPServer Homepage? Thats a really useful tool for helping to do this.
However, there is nothing really wrong with the 2 VH's you created, I assume by hand.
But honestly, the process is really quite simple. Copy the one that already exists for `localhost` and amend the ServerName and folder where the site code will go.
Suggested amendments, I just used the define variable ${INSTALL_DIR} where it can be, this just makes the file more transportable.
# Virtual Hosts
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#jensmart
<VirtualHost *:80>
DocumentRoot "${INSTALL_DIR}/www/jensmart"
ServerName jensmart
<Directory "${INSTALL_DIR}/www/jensmart/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#testsite
<VirtualHost *:80>
ServerName testsite
DocumentRoot "${INSTALL_DIR}/www/testsite"
<Directory "${INSTALL_DIR}/www/testsite/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
Now a question, did you also amend your HOSTS file to include these new domainnames?
Without doing this the browser will not be able to find these domain name when you try and use them in the address bar.
C:\windows\system32\driversetc\hosts file should look like this
127.0.0.1 localhost
::1 localhost
127.0.0.1 testsite
::1 testsite
127.0.0.1 jensmart
::1 jensmart
Save the HOSTS file and then refresh the DNS Cache so they are available to be found.
So open a command window (as an administrator), then key this command
ipconfig /dnsflush
The new domians shoudl be ready to go. Alternatively you can just reboot windows, the dns cache is rebuilt as part of the reboot process.
Good luck
---------------------------------------------------------------------------------------------
(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 2 time(s). Last edit at 04/07/2019 02:20PM by RiggsFolly.