Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: archlinux, nginx и php-fastcgi...
- To: nginx-ru@xxxxxxxxx
- Subject: Re: archlinux, nginx и php-fastcgi...
- From: AlexeyK <itsmegawtf@xxxxxxxxx>
- Date: Mon, 8 Oct 2007 18:58:04 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=M22LzVSczvmSFj9GqDyxRyvZstCqWm6O//KFvf2QQP0=; b=GzBqWi6uuB3kNCJoKG1kxCqDUuiz3TgMbPZtnmbsQGrp/co3XEEDcEAreaMGSS7GyhfcUg0sZ9eAKgeIMCcSB00Ju90fJHnj5GaVrNAv8XTknsaU2VJBePFXzKZM009I8R7J2ovbIRrY5gt0UvsajivafmbaI3Sx05q1Q3Xj4Ck=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VLI5DmnvveuArULxmyQRyikh6nPVWK9UJWIP6HAKqSNh490YLcJdb0fwg7uEQ5CeyHxveDz7817H7YCrehRU4omnXU0E6Sqob5bYWY4pFzs8P8Gehw8/lFmNHpX3oIxdqx28Y7g6x9NDwYt/Mp+/XN5ZMJ6BaCYebxdYAh8TdVQ=
- In-reply-to: <470A4DB3.2020801@xxxxxx>
- References: <4709D43B.4050506@xxxxxx> <c7aff4ef0710080119h7ab5012aq5bfca35a688159ca@xxxxxxxxxxxxxx> <470A4DB3.2020801@xxxxxx>
Скорее всего потому, что у вас $_document_root внутри location
объявляется после include fastcgi_params параметров...
Попробуйте:
upstream php {
server unix:/tmp/php-fcgi.sock;
}
server {
listen 8080;
server_name eveel.kicks-ass.org;
charset off;
location / {
root /srv/www/nginx/spectrum;
location /public {
root /srv/www/nginx;
autoindex on;
}
location ~ \.php$ {
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_connect_timeout 30;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 32k;
fastcgi_buffers 4 32k;
fastcgi_busy_buffers_size 32k;
fastcgi_temp_file_write_size 32k;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME
/srv/www/nginx/spectrum$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
}
}
}
|