Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
location php-fpm
- To: nginx-ru@xxxxxxxxx
- Subject: location php-fpm
- From: "adept" <nginx-forum@xxxxxxxx>
- Date: Sat, 17 Dec 2011 18:01:36 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=XLZ+Q/5tqI36o1kR5pR2U60i8EgWttshjpz2BrvhNh4=; b=Q9MEc2QOMJcERTdDMSh0FErCioOqRtR5l9vPc3YlW5OB+1DSsV8retZ2tg20Sn3RhDU/kSN5paQVWUuhSl6UXTlgVh2slDJgm3lxEdCIfER9PxCDTMIQcIXNaKd1Z+/Y;
Дано:
шлюз с 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 в итоге
перенаправляет на тазик с сайтом.
Где я накосячил?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,220215,220215#msg-220215
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|