Problem in dynamic sub-domain in new wamp
Posted by: GbLopper (---.mtsnet.ru)
Date: October 06, 2016 07:51AM

Hello

I try to create dynamic sub-domain (ex.: q1.world.com, w4.world.com, and ect) in new wamp 3.0.6, but get error:

The path c:/wamp64/www/%1/ for DocumentRoot does not exist (File c:/wamp64/bin/apache/apache2.4.23/conf/extra/httpd-vhosts.conf)
The path c:/wamp64/www/%1/ for <Directory ... does not exist (File c:/wamp64/bin/apache/apache2.4.23/conf/extra/httpd-vhosts.conf)
Duplicate ServerName world.com into c:/wamp64/bin/apache/apache2.4.23/conf/extra/httpd-vhosts.conf

This is my code in httpd-vhosts.conf:
<VirtualHost *:80>
ServerName world.com
ServerAlias *.world.com
DocumentRoot c:/wamp64/www/%1/
<Directory c:/wamp64/www/%1/>
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from all
</Directory>
</VirtualHost>

In previous version, it was work! Please help me!

Options: ReplyQuote
Re: Problem in dynamic sub-domain in new wamp
Posted by: Otomatic (Moderator)
Date: October 06, 2016 09:40AM

hi,

Right-Click Wampmanager tray icon -> Wamp settings -> Don't check VirtualHost definitions

Quote
GbLopper
Order Deny,Allow
Deny from all
Allow from all
First, this is the syntax for Apache 2.2. Apache 2.4 is Require ...
Second, you prohibit everyone and you are allowing everyone, would it not paradoxical?

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



Edited 1 time(s). Last edit at 10/06/2016 04:37PM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.