Re: archlinux, nginx и php-fastcgi...
AlexeyK
itsmegawtf at gmail.com
Mon Oct 8 19:58:04 MSD 2007
Скорее всего потому, что у вас $_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;
}
}
}
More information about the nginx-ru
mailing list