Добавляю в конец apache.conf. При перезагрузке апача появляется ошибка:
Syntax error on line 235 of /etc/apache2/apache2.conf:
allow not allowed here
я же написал откуда они (/etc/apache2/sites-available/имя_вирт_сервера.conf)
сотрите из этого конфига и проверьте права как писал выше
поправил конфиг вирт.сервера default:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from 127.0.0.1 allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
allow from 127.0.0.1 Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
никакой реакции
Пользователь решил продолжить мысль 02 Октября 2011, 01:30:12:
Очистите лог файл перед открытием http://127.0.0.1/index.html и после открытия в логах будет написана ошибка черным по белому.
В /var/log/apache2/error.log при открытии
http://127.0.0.1/index.html получается вот что:
[Sun Oct 02 01:29:24 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /index.html denied
[Sun Oct 02 01:29:24 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /index.html denied
[Sun Oct 02 01:29:24 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied