[Comm] Виртуальные хосты Apache

Кудрявцев Сергей =?iso-8859-1?q?KudryavtsevSV_=CE=C1_rambler=2Eru?=
Чт Окт 30 13:28:57 MSK 2008


Вот конфиг вирт хостов:

NameVirtualHost a.b.c.d

<VirtualHost a.b.c.d>
        ServerAdmin webmasterr на site1.org
        ServerName site1.org:80
        ServerAlias www.site1.org
        DocumentRoot "/var/www/apache2/html/site1.org"
        <Directory />
                Include conf/extra-available/Directory_root_default.conf
        </Directory>
        <Directory "/var/www/apache2/html/site1.org">
                Include conf/extra-available/Directory_html_default.conf
                DirectoryIndex index.php
        </Directory>
        <IfModule log_config_module>
                ErrorLog /var/log/httpd2/site1.org/error_log
                CustomLog /var/log/httpd2/site1.org/access_log combined
                LogLevel debug
        </IfModule>
</VirtualHost>

<VirtualHost a.b.c.d>
        ServerAdmin webmasterr на site2.org
        ServerName site2.org:80
        ServerAlias www.site2.org
        DocumentRoot "/var/www/apache2/html/site2.org"
        <Directory />
                Include conf/extra-available/Directory_root_default.conf
        </Directory>
        <Directory "/var/www/apache2/html/site2.org">
                Include conf/extra-available/Directory_html_default.conf
                DirectoryIndex index.php
        </Directory>
        <IfModule log_config_module>
                ErrorLog /var/log/httpd2/site2.org/error_log
                CustomLog /var/log/httpd2/site2.org/access_log combined
                LogLevel debug
        </IfModule>
</VirtualHost>


При запуске апач пише:
Checking configuration sanity for httpd2:  httpd2: Could not reliably 
determine the server's fully qualified domain name, using a.b.c.d for 
ServerName
[Thu Oct 30 13:17:42 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
Syntax OK
                                                                                                                    
[ DONE ]
Starting httpd2 service: httpd2: Could not reliably determine the 
server's fully qualified domain name, using a.b.c.d for ServerName
[Thu Oct 30 13:17:42 2008] [warn] NameVirtualHost *:0 has no VirtualHosts
                                                                                                                    
[FAILED]

Файл hosts содержит:
a.b.c.d site1 site2


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