XliN пишет:Ну, а папку для сайта в виртуалхосте надо разместить в /var/www/html, ну или на крайний случай кинуть символическую ссылку.Как ты проверяешь?
[ultras@localhost ~]$ cd /var/www/html
[ultras@localhost html]$ pwd
/var/www/html
[yarius@localhost html]$ ls
index.html* mail/ mail.com/ test.ru/
и в конфиге апача вот что написал
<VirtualHost test.ru.ru:80>
DocumentRoot /var/www/html/test.ru
ServerName test.ru
ErrorLog logs/test.ru
CustomLog logs/test.ru-access_log common
</VirtualHost>
ls -l
итого 16
-rwxrwxrwx 1 apache apache 131 мая 3 03:31 index.html*
drwxrwxrwx 2 apache apache 4096 окт. 2 02:58 mail/
drwxr-xr-x 2 root root 4096 окт. 3 08:56 mail.com/
drwxrwxr-x 2 apache apache 4096 окт. 3 16:08 test.ru/
в адресной строке пишу вот так
http://localhost/test.ru/
и снова-здарова!
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.2.22 (Mageia/PREFORK-12.mga2)
А вот что в логе ошибок
▼Spoiler
[Wed Oct 03 16:07:57 2012] [notice] Apache/2.2.22 (Mageia/PREFORK-12.mga2) DAV/2 PHP/5.3.15 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 configured -- resuming normal operations
[Wed Oct 03 16:08:07 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/test.ru
[Wed Oct 03 16:08:13 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/test.ru
[Wed Oct 03 16:08:13 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico, referer: http://localhost/test.ru
[Wed Oct 03 16:09:04 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/test.ru/
[Wed Oct 03 16:09:04 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico, referer: http://localhost/test.ru/
[Wed Oct 03 16:13:37 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/test.ru/
[Wed Oct 03 16:13:37 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico, referer: http://localhost/test.ru/
[Wed Oct 03 16:13:44 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico, referer: http://localhost/
[Wed Oct 03 16:13:56 2012] [notice] caught SIGTERM, shutting down
[Wed Oct 03 16:14:01 2012] [notice] core dump file size limit raised to 18446744073709551615 bytes
[Wed Oct 03 16:14:02 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 03 16:14:02 2012] [notice] Digest: done
[Wed Oct 03 16:14:03 2012] [notice] Apache/2.2.22 (Mageia/PREFORK-12.mga2) DAV/2 PHP/5.3.15 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 configured -- resuming normal operations
[Wed Oct 03 16:14:41 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico, referer: http://localhost/
[Wed Oct 03 20:30:50 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico, referer: http://localhost/
[Wed Oct 03 20:31:03 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/test.ru/
Directory index forbidden by Options directive
Вот где оно и что это такое?
Zomby пишет:Правильно ли я понял, что у вас в роли сайта вместо index.html странички - index.php скрипт?
В теории хочу именно так, однако сам скрипт нужно же где то разместить и запустить.