WildCard Entry for Domains
Posted by: zeeforumcompany (39.52.104.---)
Date: May 01, 2020 01:41PM

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

Options: ReplyQuote
Re: WildCard Entry for Domains
Posted by: Otomatic (Moderator)
Date: May 01, 2020 02:12PM

Hi,

It's just a warning.

Right-Click -> Wamp settings -> Dontt check VirtualHost definitions

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: WildCard Entry for Domains
Posted by: zeeforumcompany (39.52.104.---)
Date: May 01, 2020 03:40PM

Thank you it helped me a lot!

Issue resolved!

Error messages now gone!

Options: ReplyQuote
Re: WildCard Entry for Domains
Posted by: Otomatic (Moderator)
Date: May 01, 2020 03:58PM

Hi,

Wampserver's VirtualHost management is mainly aimed at beginners to allow them to avoid errors in the simple definition of VirtualHost.
This makes it absolutely impossible to check all cases such as "wildcard" definitions and can lead to problems in the displays of VitualHost in the Your VirtualHost submenu, in the Wampserver home page and in the Add a VirtuaHost page.

There is another possibility, without the need to change the Wampserver settings.

Only the httpd-vhosts.conf file is opened to check VirtualHosts, so you leave in this file only the local VirtualHost and you put your own VirtualHost in another file, for example httpd-myvhosts.conf, and at the end of the httpd-vhosts.conf file you put an include directive to your own file.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 05/01/2020 04:40PM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.