Answer the question
In order to leave comments, you need to log in
Why don't four virtual hosts work on Apache?
In general, there is a server with Debian, Apache, mysql, etc. are raised on it.
The server lives in the internal network, and a kerio proxy is configured from outside. On DNS A records for four addresses are registered. When accessing addresses, forwarding occurs to the server at the internal address.
And here's the trouble itself, when you set up virtual hosts on Apache, namely:
1) write an entry in /etc/hosts - 127.0.1.1 my.site.ru
2) create a configuration file /etc/apache2/sites-available/my. site.ru with this content
<VirtualHost *:80>
ServerAlias my.site.ru www.my.site.ru
DocumentRoot /var/www/sites/my.site.ru/
<Directory /var/www/sites/my.site.ru/>
AllowOverride All
</Directory>
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
directives
NameVirtualHost *:80
Listen 80
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question