Welcome! Log In Create A New Profile

Advanced

502 bad gateway(Nginx + spawn-fcgi + MySQL)

Posted by OZzzy 
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_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080/ 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

В логах
------------------------
error.log
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: "http://127.0.0.1:8080/webs/roles/", 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: 156
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