Nginx の 502 Bad Gateway

Nginx の 502 Bad Gateway

このリンクをクリックするhttp://localhost:8094/blast/get_sequences.cgi?database=db/Nbv5.1trPrm&hit_count=1&alignment_seq_1=Nbv5.1tr6212914%20RNA-dependent%20RNA%20polymerase%202%20(probable)

502 Bad Gateway
nginx/1.10.3 (Ubuntu)

私の nginx の設定ファイル (デフォルト) は次のとおりです。

# Default server configuration
#

error_log /var/log/blast.log error;
access_log /var/log/blast.log;

fastcgi_read_timeout 600;

client_max_body_size 10M;

server {
  listen 80 default_server;
  listen [::]:80 default_server;

  root /var/www/html;

  # pass PHP scripts to FastCGI server
  #
  location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    # With php-fpm (or other unix sockets):
    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
    auth_basic "Restricted Content";
    auth_basic_user_file /etc/nginx/.htpasswd;
  }

  # deny access to .htaccess files, if Apache's document root
  # concurs with nginx's one
  location ~ /\.ht {
    deny all;
  }

  #Rules for blast
  location /blast/ {
    location ~ \.cgi($|.*) {
      gzip off;
      autoindex on;
      include fastcgi_params;
      #fastcgi_param  DOCUMENT_ROOT /var/www/html/blast/;
      fastcgi_pass unix:/var/run/fcgiwrap.socket;
    }
  }
}

  #Rules for sequenceserver
  location /sequenceserver/ {
      proxy_pass http://localhost:4567/;
      proxy_intercept_errors on;
      proxy_connect_timeout 8;
      proxy_read_timeout 180;
  }
}

私は何を取りこぼしたか?

よろしくお願いします。

答え1

/var/run/fcgiwrap.socketおそらく、nginx とそれ自体の間の通信に使用するアプリケーション ソフトウェアが実行されていない可能性があります。

関連情報