Стоит Xubuntu 14.04.
Настраиваю веб-сервер по данной инструкции.
Проделал все пункты.
Вот список моих хостов (/etc/hosts):
127.0.0.1 localhost
127.0.1.3 burguy
127.0.1.2 test1.ru
127.0.1.1 webserver1
localhost, webserver1 - сайты по умолчанию,
test1.ru - тестовый сайт
Открываются все сайты, кроме burguy.
В логах Apache ничего не нашел.
Сайты test1.ru и burguy находятся в папке /home/stas/www
Права на нее выставлены такие же, как на папку /var/www.
Вот содержимое burguy.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName burguy
ServerAlias burguy www.burguy
DocumentRoot /home/stas/www/burguy/
<Directory /home/stas/www/burguy>
Options Includes Indexes FollowSymLinks
AllowOverride All
Require all granted
Satisfy all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Вот содержимое test1.ru.conf:
<VirtualHost *:80>
ServerName test1.ru
ServerAdmin webmaster@localhost
DocumentRoot /home/stas/www/test1.ru/
<Directory /home/stas/www/test1.ru>
Options Includes Indexes FollowSymLinks ExecCGI
AllowOverride All
Require all granted
Satisfy all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Видно, что файлы почти одинаковы.
В корне сайта burguy лежит .htaccess:
ErrorDocument 404 http://www.burguy.ru/?razd=404
AddDefaultCharset windows-1251
AddType application/x-httpd-php .php3 .phtml
AddType application/x-httpd-php .php
AddHandler server-parsed .shtml .shtm
AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex index2010.php new_index.php index.php3 index.phtml index.shtml index.shtm index.htm index.html
Options +Includes
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
php_value error_reporting 1
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^pict/(.*) /pict/new_index.php?src=$1 [L]
RewriteRule ^/?s=(.*)&t=(.*)$ /?t=$2&s=$1[R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} !^test\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#Options +FollowSymlinks
#RewriteBase /
#RewriteRule ^.htaccess$ - [F]
Вряд ли в нем проблема, т. к. без него тоже не работает.
В Denwer такая проблема наблюдалась, когда не создавался соответствующий виртуальный хост.
Но здесь у меня они создаются.
Интересно, что по адресу 127.0.1.3 в браузере открывается индексная страница Apache,
но другие файлы из каталога burguy не открываются.
Что я еще мог не учесть?
PHP проверил - рабоотает.
Фрагмент error.log:
[Tue Apr 29 22:36:23.163403 2014] [mpm_prefork:notice] [pid 3745] AH00169: caught SIGTERM, shutting down
[Tue Apr 29 22:36:24.417099 2014] [mpm_prefork:notice] [pid 5682] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4 configured -- resuming normal operations
[Tue Apr 29 22:36:24.417621 2014] [core:notice] [pid 5682] AH00094: Command line: '/usr/sbin/apache2'