[Sysadmins] vhosts в apache2

Alexey Sidorov =?iso-8859-1?q?alex_=CE=C1_reutman=2Eru?=
Вт Мар 6 14:03:45 MSK 2007


Здравствуйте.
Помогите настроить vhosts by name

прописываю:
/etc/httpd2/httpd2.conf:
Listen *:80
<Directory "/var/www/vhosts">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Include conf/vhost.d/A.*.conf

/etc/httpd2/conf/vhost.d/A.1.conf:
<VirtualHost *:80>
    DocumentRoot /var/www/vhosts/serv1
    ServerName serv1
</VirtualHost>

/etc/httpd2/conf/vhost.d/A.2.conf:
<VirtualHost *:80>
    DocumentRoot /var/www/vhosts/serv2
    ServerName serv2
</VirtualHost>

получаю:
alex:alexlin ~$ sudo service httpd2 restart
Stopping httpd2 service:                                                                          [
DONE ]
Checking configuration sanity for httpd2:  [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost
overlap on port 80, the first has precedence
Syntax OK
                                                                                                  [
DONE ]
Starting httpd2 service: [Tue Mar 06 13:56:53 2007] [warn] _default_ VirtualHost overlap on port 80,
the first has precedence

Что не так?

-- 
Alexey Sidorov
	mailto:alex на reutman.ru
	JID: alex на reutman.ru
	ICQ: 5052225



Подробная информация о списке рассылки Sysadmins