connect() failed (111: Connection refused) while connecting to upstream

Gallitin nginx-forum at
Mon Dec 3 21:32:04 UTC 2012

Sorry for the grammar error.

If I do curl -i
it returns the code from the msgFBmodal.js page.  Yet if I hit the page via
browser I still receive the gateway error.

The nginx.conf file is:

#user  nginx;
worker_processes  1;

#error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

#pid        /var/run/;

events {
    worker_connections  1024;

http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request"
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
"nginx.conf" 40L, 847C

Posted at Nginx Forum:,233519,233527#msg-233527

More information about the nginx mailing list