Welcome! Log In Create A New Profile

Advanced

location php-fpm

December 17, 2011 06:01PM
Дано:
шлюз с nginx'om на борту --> тазик с сайтом
На шлюзе, так-же установлен php-fpm для 1 пхп файла.

Конфиг:
server {
listen IP:80;
server_name site.ru www.site.ru;

location /stat/ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index st.php;
fastcgi_param script_FILENAME /var/www/other/stat/st.php
include fastcgi_params;
#root /var/www/other/stat/;
}
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;
}

Собственно, site.ru/stat/st.php в итоге перенаправляет на тазик с сайтом.
Где я накосячил?
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: 118
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready