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

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.2 32 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30 - MariaDB 10.4.12
Wampserver 3.2.2 64 bit - Apache 2.4.43 - PHP 7.4.6/7.3.18/..../5.6.40 - MySQL 5.7.30/8.0.20 - MariaDB 10.4.12
PhPMyadmin 5.0.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



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.