Welcome! Log In Create A New Profile

Advanced

nginx обрабатывает PHP после перезагрузки

Andrey Kravchenko
October 28, 2011 11:30AM
Добрый день,

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 mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx обрабатывает PHP после перезагрузки

Andrey Kravchenko October 28, 2011 11:30AM

Re: nginx обрабатывает PHP после перезагрузки

Craken October 28, 2011 03:00PM

Re: nginx обрабатывает PHP после перезагрузки

Andrey Kravchenko October 28, 2011 03:26PM

Re: nginx обрабатывает PHP после перезагрузки

Алексей Малов October 28, 2011 03:52PM

Re: nginx обрабатывает PHP после перезагрузки

Andrey Kravchenko October 28, 2011 05:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready