Welcome! Log In Create A New Profile

Advanced

Re: location php-fpm

December 19, 2011 07:11AM
Попробуйте так:
server {
listen IP:80;
server_name site.ru www.site.ru;

location ^~ /stat/ {
return 403;
}
location / {
proxy_pass http://ip_server2:80;
proxy_redirect http://ip_server2:80/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}

Если будет отдавать 403-ю ошибку при каждом запросе на /stat - то значит запрос попадает в локейшн, и проблема в пхп!

>>В логах php-fpm тишина.
>>[19-Dec-2011 19:30:03] NOTICE: fpm is running, pid 10685
>>[19-Dec-2011 19:30:03] NOTICE: ready to handle connections

пхп не будет писать в лог о поступившем запросе!
Subject Author Posted

location php-fpm

adept December 17, 2011 06:01PM

Re: location php-fpm

hg_04 December 18, 2011 03:34PM

Re: location php-fpm

Craken December 19, 2011 01:22AM

Re: location php-fpm

hg_04 December 19, 2011 02:09PM

Re: location php-fpm

Валентин Бартенев December 18, 2011 06:06PM

Re: location php-fpm

adept December 19, 2011 05:31AM

Re: location php-fpm

Валентин Бартенев December 19, 2011 05:54AM

Re: location php-fpm

Craken December 19, 2011 06:11AM

Re: location php-fpm

adept December 19, 2011 06:38AM

Re: location php-fpm

adept December 19, 2011 06:39AM

Re: location php-fpm

Craken December 19, 2011 07:11AM

Re: location php-fpm

adept December 19, 2011 10:04AM

Re: location php-fpm

Валентин Бартенев December 19, 2011 07:56AM

Re: location php-fpm

Валентин Бартенев December 19, 2011 02:36PM

Re: location php-fpm

adept December 19, 2011 05:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 146
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready