Hi,
This shows:
- That you wrote everything by hand, even modifying the original VirtualHost localhost that existed and that you should have been inspired by for your own VirtualHost.
- That you did not use the "Add a VirtualHost" tool integrated into Wampserver, because there are some small errors.
The original locahost VirtualHost was :
<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>
- The <Directory"......"> tag must include a final slash so:
<Directory "c:/wamp64/www/daktasubdomain/">
And so on for the other tags <Directory...
I myself use locally, a main site with three subdomains, but without the tld .com and it works very well.
However, in your case, I am concerned that the term "subdomain" in the ServerName may be misinterpreted.
In my case, the main ServerName is aviatechno and the ServerName of the subdomains are wampserver.aviatechno, faq-fra.aviatechno and le-pointu.aviatechno
- Add the final slash to the tags <Directory
- Replace subdomain by something else
- Add the line
Options +Indexes +Includes +FollowSymLinks +MultiViews
under the <Directory tags.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons