|
|
|
|
áòèé÷ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: þÔÏ ÚÎÁÞÉÔ ÜÔÁ ÏÛÉÂËÁ ?
- To: nginx-ru@xxxxxxxxx
- Subject: Re: þÔÏ ÚÎÁÞÉÔ ÜÔÁ ÏÛÉÂËÁ ?
- From: Sergey Shepelev <temotor@xxxxxxxxx>
- Date: Tue, 21 Apr 2009 19:56:35 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gseuOJK6KLqHokM74qX9vL4zWRavldACF3tugmqDrXM=; b=xHUX+39jCraMwJxjnsdkyousC+92DCdLqkrASgqC6LszHEWPHqkSPzBm6k8st9eRB0 RVqpKFUagRLlkL9sM//6NyH7bj8Lkh8NZcPIYNqEpf09ZL9AWwU8DJdQmfiXAhCLdNaf Ohh9wYQzUCazso/auuSbCbErKhEZyFQdEJssc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sgDrlt5K4fin2EETm5uCMdl6rMSarEwWDlwR4mwU30gqtUrK0xSGdpBKjTTd7TuWDQ aZmSOgIrTszkfph/DPlhF/J0Csnm6zu+5MO2Chn2nqqCUXuqXkqeh8I3t8cvEt4cGZa6 R4KiMjzfrDz/UuZQYdP0+wNkqARaVnxhDAz2Q=
- In-reply-to: <EA36CA6CE468451DACC75D65D3DB7075@maxhl>
- References: <20090421135210.GA83900@xxxxxxxxxxxxx> <EA36CA6CE468451DACC75D65D3DB7075@maxhl>
úÁÐÒÏÓ ËÁËÏÊ ÂÙÌ?
2009/4/21 <maxhl@xxxxxxxxxxxxxx>:
> ÷ error ÌÏÇÅ ÐÏÌÎÏ ÔÁËÉÈ ÏÛÉÂÏË:
> 2009/04/21 18:22:45 [error] 29090#0: *166570 open()
> "/home/content/index.html" failed (2: No such file or directory), client:
> ...
> õ ÍÅÎÑ ×ÅÚÄÅ ÐÒÏÐÉÓÁÎ index.php Á ÏÎ ×ÓÅ ÒÁ×ÎÏ ÉÝÅÔ index.html ...
>
> ëÏÎÆÉÇ ×ÉÒÔ ÈÏÓÔÁ:
> server {
> š šlisten 80;
> š šlisten 81;
> š šlisten 82;
>
> š šserver_name ÍÏÊ.ÄÏÍÅÎ *.ÍÏÊ ÄÏÍÅÎ;
> š šaccess_log /home/logs/content_access.log combined;
> š šerror_log /home/logs/content_error.log info;
> š šserver_name_in_redirect off;
> š šroot /home/content;
> š šindex index.php index.html index.htm;
>
> # redirect to php<----->
> š šlocation ~ .php$ {
>
> š šset $path_info $fastcgi_script_name;
> š šset $real_script_name $fastcgi_script_name;
> š šif ($fastcgi_script_name ~ "(.+?.php)(/.+)$") {
> š š š šset $real_script_name $1;
> š š š šset $path_info $2;
> š š}
> š šfastcgi_param SCRIPT_FILENAME š/home/content$real_script_name;
> š šfastcgi_param SCRIPT_NAME $real_script_name;
> š šfastcgi_param PATH_INFO $path_info;
> š šfastcgi_pass unix:/mnt/md0/php-fcgi.sock;
> š šinclude š/usr/local/nginx/conf/phpcgi.conf;
> š š}
>
> š šinclude /usr/local/nginx/conf/404;
> š šinclude /usr/local/nginx/conf/anti_lich;
> š šinclude /usr/local/nginx/conf/.ht;
> }
>
>
> #phpcgi.conf
> fastcgi_pass_request_body off;
> client_body_in_file_only clean;
> fastcgi_param šREQUEST_BODY_FILE š$request_body_file;
> fastcgi_param<->CONTENT_TYPE<--><------>$content_type;
> fastcgi_param<->CONTENT_LENGTH<><------>$content_length;
> fastcgi_param š DOCUMENT_ROOT<-><------>$document_root;
> fastcgi_param<->DOCUMENT_URI<--><------>$document_uri;
> fastcgi_param<->GATEWAY_INTERFACE<----->CGI/1.1;
> #fastcgi_param š PATH_INFO <---><------>"http://$http_host$request_uri";
> #fastcgi_param š PATH_TRANSLATED š š š š "/home/content$document_uri";
> fastcgi_param<->QUERY_STRING<--><------>$query_string;
> fastcgi_param<->REMOTE_ADDR<---><------>$remote_addr;
> fastcgi_param<->REMOTE_PORT<---><------>$remote_port;
> fastcgi_param<->REQUEST_URI<---><------>$request_uri;
> fastcgi_param<->REQUEST_METHOD<><------>$request_method;
> fastcgi_param<->SCRIPT_NAME<---><------>$request_uri;
> fastcgi_param<->SERVER_ADDR<---><------>$server_addr;
> #fastcgi_param<>SERVER_NAME<---><------>$server_name;
> fastcgi_param<->SERVER_PORT<---><------>$server_port;
> fastcgi_param<->SERVER_PROTOCOL><------>$server_protocol;
> fastcgi_param<->SERVER_SOFTWARE <------>nginx/$nginx_version;
>
> fastcgi_param š REDIRECT_STATUS 200;
> fastcgi_index šindex.php;
>
> úÁÒÁÎÅÅ ÓÐÁÓÉÂÏ.
> ____________________________
> ó Õ×ÁÖÅÎÉÅÍ Max ICQ 71006063
>
>
>
>
>
|
|
|