ПРОЕКТЫ 


  АРХИВ 


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]

nginx - nginx - fpm


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx - nginx - fpm
  • From: "hg_04" <nginx-forum@xxxxxxxx>
  • Date: Tue, 08 Nov 2011 10:07:39 -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=DCZgxZrwwE5DtYhlWtNOaIJz0taNNpHH4mnFVzeNvjs=; b=roVuqMu7e7XK8mEMSNYpbJQH813UFFiPsACs7yl+JJOmkzFmUkLSXbpxCk42TlTL2r5dfk198Nz1gB6S8x1bBA1RW84/jnFGCgYt6jcLOy3zzM8K9EKskQ2D1HqmODnt;

извеняюсь за крос постинг, но я в
отчаянии, убил день но не вижу решения.

nginx/1.1.6 PHP 5.3.8 (fpm-fcgi) (built: Oct 21 2011 12:22:04)
Проблема в следующим в пхп передается
сервер нейм "_", как это исправить?
в конфиге fastcgi_params прописано
fastcgi_param  SERVER_NAME        $server_name;

есть конфиг
<code>
location / {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
</code>
на ноде
<code>
server {
listen 80;
server_name _;

index index.php index.php5 index.html;
root /var/www;

location / {
try_files $uri $uri/ @php;
}


error_page 404 /404.html;

location = /404.html {
root /usr/share/nginx/html;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

location ~ \.php$ {
try_files $uri $uri/ @php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
}
location @php {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_param SCRIPT_FILENAME /var/www/index.php;
fastcgi_param QUERY_STRING url=$uri&$args;
}
}
</code>

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

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


 




Copyright © Lexa Software, 1996-2009.