apache vhosts
Модераторы: Trinity admin`s, Free-lance moderator`s
-
- Junior member
- Сообщения: 9
- Зарегистрирован: 01 июл 2004, 15:09
- Откуда: Ukraine
- Контактная информация:
apache vhosts
Есть такая проблема: установил апач, все идот, захотел я хостануть своего друга, зделал все как в доку а оно выдает:
Forbidden
You don't have permission to access //test on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 (ASPLinux) Server at fm.dim.te.ua Port 80
конфиг на
http://www.dim.te.ua/apache.html
Forbidden
You don't have permission to access //test on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 (ASPLinux) Server at fm.dim.te.ua Port 80
конфиг на
http://www.dim.te.ua/apache.html
вообще то часть с виртуальными доменами лучше делать с таким синтаксисом:
а ошибка ваша идёт от того что вы пытаетесь отобразить документ лежащий выше корня сервера " DocumentRoot "/var/www/html"
против "DocumentRoot /www/test.dim.te.ua" для виртуал хоста.
Обратите внимание что в моём конфиге корень виртуального сервера распологается в директории общего корня апача.
Код: Выделить всё
DocumentRoot "/home/www/"
NameVirtualHost *
########################################################
# 3nity.ru
########################################################
<VirtualHost *>
ServerAdmin setar@trinity.spb.ru
DocumentRoot /home/www/3nity.ru
ServerName www.3nity.ru
ErrorLog /usr/local/apache/logs/3nity.ru.err
CustomLog /usr/local/apache/logs/3nity.ru.log combined
</VirtualHost>
<VirtualHost *>
ServerAdmin setar@trinity.spb.ru
DocumentRoot /home/www/3nity.ru
ServerName 3nity.ru
ErrorLog /usr/local/apache/logs/3nity.ru.err
CustomLog /usr/local/apache/logs/3nity.ru.log combined
</VirtualHost>
########################################################
# MYLEX.ru
########################################################
<VirtualHost *>
ServerAdmin setar@trinity.spb.ru
DocumentRoot /home/www/mylex.ru
ServerName mylex.ru
ErrorLog /usr/local/apache/logs/mylex.ru.err
CustomLog /usr/local/apache/logs/mylex.ru.log combined
</VirtualHost>
<VirtualHost *>
ServerAdmin setar@trinity.spb.ru
DocumentRoot /home/www/mylex.ru
ServerName www.mylex.ru
ErrorLog /usr/local/apache/logs/mylex.ru.err
CustomLog /usr/local/apache/logs/mylex.ru.log combined
</VirtualHost>
против "DocumentRoot /www/test.dim.te.ua" для виртуал хоста.
Обратите внимание что в моём конфиге корень виртуального сервера распологается в директории общего корня апача.
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 5 гостей