Re: archlinux, nginx и php-fastcgi...
Alexey Karagodov
karagodov at gmail.com
Mon Oct 8 12:13:00 MSD 2007
каг-то таг, кое каг работает:
fastcgi_param QUERY_STRING
$query_string;
fastcgi_param CONTENT_TYPE
$content_type;
fastcgi_param CONTENT_LENGTH
$content_length;
fastcgi_param SCRIPT_NAME
$fastcgi_script_name;
fastcgi_param REQUEST_METHOD
$request_method;
fastcgi_param REQUEST_URI
$request_uri;
# fastcgi_param REQUEST_BODY_FILE
$request_body_file;
fastcgi_param DOCUMENT_URI
$document_uri;
fastcgi_param DOCUMENT_ROOT
$_document_root;
fastcgi_param PATH_TRANSLATED
$_document_root$fastcgi_script_name;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_PROTOCOL
$server_protocol;
fastcgi_param SERVER_SOFTWARE
nginx/$nginx_version;
fastcgi_param SERVER_ADDR
$server_addr;
fastcgi_param SERVER_PORT
$server_port;
fastcgi_param SERVER_NAME
$server_name;
fastcgi_param REMOTE_ADDR
$remote_addr;
fastcgi_param REMOTE_PORT
$remote_port;
fastcgi_param REMOTE_USER
$remote_user;
# fastcgi_param REDIRECT_STATUS 200;
upstream php-cluster {
# ip_hash;
# server 10.20.1.126:9000;
# server 10.20.1.127:9000;
server 10.20.1.140:9000;
server 10.20.1.141:9000;
server 10.20.1.142:9000;
server 10.20.1.143:9000;
server 10.20.1.144:9000;
}
server {
server_name *.example.*;
set $_document_root
/srv/www/example;
access_log /srv/logs/example/access.log
extended_proxy;
location ~ \.php$ {
fastcgi_index index.php;
include
include/fastcgi_param;
# fastcgi_pass_request_body off;
# client_body_in_file_only clean;
root $_document_root;
fastcgi_pass php-cluster;
include
include/error_MISSING;
include
include/error_FAILURE;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20071008/a5522bef/attachment.html>
More information about the nginx-ru
mailing list