nginx обрабатывает PHP после перезагрузки
    Andrey Kravchenko 
    a на livebb.ru
       
    Пт Окт 28 15:29:20 UTC 2011
    
    
  
Добрый день,
Nginx начинает проксировать PHP только после рестарта (веб-сервера, не 
PHP). В чем может быть проблема?
Как воспроизвести:
1. Запустить систему
2. Дождаться автозагрузки всего
3. Попытаться подключиться к сайту через браузер - безуспешно
4. Перезагрузить Nginx - подключиться к сайту - успешно
Ubuntu 11.10, Nginx 1.0.5
Конфиг:
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
          worker_connections 768;
}
http {
          sendfile on;
          tcp_nopush on;
          tcp_nodelay on;
          keepalive_timeout 65;
          types_hash_max_size 2048;
          include /etc/nginx/mime.types;
          default_type application/octet-stream;
          access_log /var/log/nginx/access.log;
          error_log /var/log/nginx/error.log;
          gzip on;
          gzip_disable "msie6";
server {
         root /var/www/r;
         index index.php;
         # Make site accessible from http://localhost/
         server_name r;
         location / {
                 # First attempt to serve request as file, then
                 # as directory, then fall back to index.html
                 #try_files $uri $uri/ /index.html;
                 try_files $uri $uri/ /index.php?q=$uri&$args;
         }
         # pass the PHP scripts to FastCGI server
         location ~ \.php$ {
                 fastcgi_pass 127.0.0.1:8000;
                 fastcgi_index index.php;
                 include fastcgi_params;
         }
}
}
    
    
Подробная информация о списке рассылки nginx-ru