 |
Цитата: |
 |
|
|
|
|
|
|
|
|
|
|
При старте httpd ни на что не ругается.
Уважаемые знатоки, подскажите в что не так?
|
|
 |
|
 |
|
А что за domain.conf?
к примеру у меня:
/usr/local/etc/apache22/httpd.conf
<VirtualHost 1.2.3.4:80>
ServerName mail.test
ServerAlias
www.test
ServerAlias admin.mail.test
DocumentRoot /usr/home/mail/public_html
ErrorLog /var/log/virtualmin/mail.test_log
CustomLog /var/log/virtualmin/mail.test_access_log combined
ScriptAlias /cgi-bin/ /usr/home/mail/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /usr/home/mail/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /usr/home/mail/cgi-bin>
allow from all
</Directory>
RewriteEngine on
</VirtualHost>
<VirtualHost 1.2.3.4:80>
ServerName test
ServerAlias
www.test
ServerAlias admin.test
DocumentRoot /usr/home/test/public_html
ErrorLog /var/log/virtualmin/test_error_log
CustomLog /var/log/virtualmin/test_access_log combined
ScriptAlias /cgi-bin/ /usr/home/test/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /usr/home/test/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /usr/home/test/cgi-bin>
allow from all
</Directory>
RewriteEngine on
</VirtualHost>
Это работает на FreeBSD.
посмотри так же строчку:
Код:
# Virtual hosts
#Include etc/apache22/extra/httpd-vhosts.conf
и
Код:
# Various default settings
#Include etc/apache22/extra/httpd-default.conf
если как у меня, то оставь, если нет, то закоментируй.
Эти дерективы указывают, что нужно использовать отдельные файлы конфигурации.
А вообще нужно смотрить логи.
Обратись сначала на один хост, потом на другой и смотри логи.
Вообще, советую тебе использовать IP-адрес, а так же указать директиву NameVirutalHost