Answer the question
In order to leave comments, you need to log in
Why doesn't using mod_macro for Wirth. hosts?
I have been using this for more than a year:
habrahabr.ru/post/112193
to create virtual hosts. Recently installed Ubuntu 14.04. I set everything according to the article:
habrahabr.ru/sandbox/38025
But when accessing any local domain or localhost, it still throws in the
/var/www/html/ folder.
In general, the file with virtual hosts is ignored:
/etc/apache2/conf.d/ custom/vhosts
PS:
- Apache rebooted;
- executed commands:
sudo apt-get install libapache2-mod-macro
sudo a2enmod macro
127.0.0.1 test2.loc www.test2.loc
<Macro VHost $host $path>
<VirtualHost *:80>
DocumentRoot "$path"
ServerAdmin [email protected]
ServerName $host
ServerAlias www.$host
DirectoryIndex index.php index.html index.htm index.shtml
<Directory "$path">
Options FollowSymLinks
Options all
AllowOverride All
</Directory>
</VirtualHost>
</Macro>
......
test2.loc /home/www-data/www/test2
.......
Server version: Apache/2.4.7 (Ubuntu)
Server built: Apr 3 2014 12:20:28
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question