ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx location single php file


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: nginx location single php file
  • From: "skeletor" <nginx-forum@xxxxxxxx>
  • Date: Thu, 16 May 2013 08:22:59 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=qvvGdN9Vsis/cuFqJQR1+jL+f1uZnUR+g8sBIdMS/EU=; b=l+vVMuBRBOwXcF1UxuXvPmyjUInTPn4LbjQ4bZwNXH5puPXPj15+zcrbSsRLpILv1ZHsqUymbBy+x41VHs4O8dR2Q/uRRgx/TgHsaNtmkCdA3q3Qmf7Rx/rMzfgwbU6hLgBiYADi9cghXY3URUfhXm+qSskUExG04H/ifF7BzLo=;
  • In-reply-to: <1931049948.20130516151157@sadok.spb.ru>
  • References: <1931049948.20130516151157@sadok.spb.ru>

Спасибо всем за помощь.
Проблема была на поверхности, а именно - не слушался порт 9000. То есть
банально php-fpm не работал. Вот, правильный (работает и тот, но этот точнее
будет; как видно отличие только в = и ~)

        location = /rpc.php {
                auth_basic off;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param DOCUMENT_ROOT /www;
                fastcgi_param SCRIPT_FILENAME /www$fastcgi_script_name;
                fastcgi_param PATH_TRANSLATED /www$fastcgi_script_name;
                fastcgi_param SCRIPT_NAME $fastcgi_script_name;
                fastcgi_param QUERY_STRING $query_string;
                fastcgi_param CONTENT_TYPE $content_type;
                fastcgi_param CONTENT_LENGTH $content_length;
                fastcgi_param SERVER_ADDR $server_addr;
                fastcgi_param SERVER_PORT $server_port;
                fastcgi_param SERVER_PROTOCOL $server_protocol;
                fastcgi_param GATEWAY_INTERFACE "CGI/1.1";
                fastcgi_param SERVER_NAME $server_name;
                fastcgi_param REQUEST_URI $request_uri;
                fastcgi_param REQUEST_METHOD $request_method;
                fastcgi_param REMOTE_USER $remote_user;
                fastcgi_param REMOTE_ADDR $remote_addr;
                fastcgi_param REMOTE_PORT $remote_port;
                fastcgi_param GEOIP_COUNTRY_CODE $geoip_city_country_code;
                fastcgi_param GEOIP_COUNTRY_NAME $geoip_city_country_name;
                fastcgi_param GEOIP_REGION $geoip_region;
                fastcgi_param GEOIP_CITY $geoip_city;
        }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,239256,239269#msg-239269

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.