502 bad gateway(Nginx + spawn-fcgi + MySQL)
June 05, 2013 08:30AM
Установлено: Nginx + spawn-fcgi + MySQL
OS: Debian 6

server {
listen X.X.X.X:35002;

location ~ /\.(ht|svn|cvs|hg|txt|log|class|cgi|xml|conf|config|properties|jar) {
deny all;

location /webs/ {
proxy_redirect http://X.X.X.X:35002/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
access_log /var/log/iweb/admin_access.log;

allow Y.Y.Y.Y;
deny all;

При открытии в броузере http://X.X.X.X:35002/
502 bad gateway

В логах
2013/06/05 15:07:38 [error] 2396#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: Y.Y.Y.Y, server: server, request: "GET /webs/roles/ HTTP/1.1", upstream: "", host: "X.X.X.X:35002"
2013/06/05 15:07:38 [error] 2396#0: *1 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: Y.Y.Y.Y, server: server, request: "GET /favicon.ico HTTP/1.1", host: "X.X.X.X:35002"

На 80 порту сайт работает, myphp админ тоже работает

Причем, на второй машине все работает нормально с той же ОС и точно таким же конфигом.
Прошу помощи.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
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