Такая трабла. Пытаюсь добавить третий виртхост, апач начинает ругаться.
/etc/httpd2/conf/sites-availible/vhosts.conf
# Virtual Hosts
#
#NameVirtualHost 10.0.9.1:80
#
<VirtualHost 10.0.9.1:80>
<------>ServerAdmin admin@site.by
<------>DocumentRoot "/var/www/vhosts/site.by"
<------>ServerName site.by
<------>ErrorLog "/var/log/httpd2/site-error_log"
<------>CustomLog "/var/log/httpd2/site-access_log" common
</VirtualHost>
#
<VirtualHost 10.0.9.1:9001>
<------>ServerAdmin webmaster@dummy-host2.example.com
<------>DocumentRoot "/var/www/vhosts/mrtg"
<------>ServerName mrtg.statistic
<------>ErrorLog "/var/log/httpd2/mrtg-error_log"
<------>CustomLog "/var/log/httpd2/mrtg-access_log" common
</VirtualHost>
#
#<VirtualHost 10.0.9.1:9010>
#<------>ServerAdmin webmaster@dummy-host2.example.com
#<------>DocumentRoot "/var/www/vhosts/collectd"
#<------>ServerNameme collectd.statistic
#<------>ErrorLog "/var/log/httpd2/collectd-error_log"
#<------>CustomLog "/var/log/httpd2/collectd-access_log" common
#</VirtualHost>
/etc/httpd2/conf/ports-availible/http.conf
Listen 80
Listen 9001
Listen 9010
При раскоментировании третьего виртхоста, начинает ругаться
[root@nat vhosts]# service httpd2 configtest
Checking configuration sanity for httpd2: httpd2: Syntax error on line 154 of /etc/httpd2/conf/httpd2.conf: Syntax error on line 47 of /etc/httpd2/conf/sites-enabled/vhosts.conf: Expected </----->CustomLog> but saw </VirtualHost>
Пробовал менять хосты местами, картина таже, 2 работают, а после добавления третьего начинает ругаться.
На всякий, 154 строчка httpd2 это
Include conf/sites-enabled/*.conf