Hi,
I have an issue in wampserver related to apache.
I have setup VirtualHost in apache httpd-vhost.conf file. It's also include httpd.conf.
The issue is when I give following record in apache virtual host:
<VirtualHost *:80>
VirtualDocumentRoot "D:/php/web/%-2"
ServerName domain.web
ServerAlias *.web
ServerAlias *.*.web
<Directory "D:/php/web/*">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
and save it. Restarted all the services.
Also set up Acryclic DNS to host wildcard entry for *.web domains.
Now it's working fine. But in wampserver when I opened up localhost it shows me these errors:
Error(s) See below
The path D:/php/zee/%-2 for DocumentRoot does not exist (File D:/wamp64/bin/apache/apache2.4.41/conf/extra/httpd-vhosts.conf)
The path D:/php/zee/* for <Directory ... does not exist (File D:/wamp64/bin/apache/apache2.4.41/conf/extra/httpd-vhosts.conf)
I think it's some kind of issue with wampserver. It does not work with direct domains. Because we are creating wildcard entry.
Please help ASAP.
Thanks!
Regards: zeeforumcompany
I have an issue in wampserver related to apache.
I have setup VirtualHost in apache httpd-vhost.conf file. It's also include httpd.conf.
The issue is when I give following record in apache virtual host:
<VirtualHost *:80>
VirtualDocumentRoot "D:/php/web/%-2"
ServerName domain.web
ServerAlias *.web
ServerAlias *.*.web
<Directory "D:/php/web/*">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
and save it. Restarted all the services.
Also set up Acryclic DNS to host wildcard entry for *.web domains.
Now it's working fine. But in wampserver when I opened up localhost it shows me these errors:
Error(s) See below
The path D:/php/zee/%-2 for DocumentRoot does not exist (File D:/wamp64/bin/apache/apache2.4.41/conf/extra/httpd-vhosts.conf)
The path D:/php/zee/* for <Directory ... does not exist (File D:/wamp64/bin/apache/apache2.4.41/conf/extra/httpd-vhosts.conf)
I think it's some kind of issue with wampserver. It does not work with direct domains. Because we are creating wildcard entry.
Please help ASAP.
Thanks!
Regards: zeeforumcompany