Nginx不适用于特定的URL / AppzillonServer

时间:2019-03-22 07:17:07

标签: nginx nginx-location nginx-reverse-proxy nginx-config

我在AWS中运行nginx,有两个应用程序正在运行,一个是Web应用程序/ AutoFinance,它运行良好。此AutoFinance在内部与/ AppzillonServer交互,但出现500 Internal Server错误,当我在浏览器中通过导航到/ AppzillonServer,nginx提示“ 404 Not Found Error”,为什么我在配置以下应用程序时出现此错误。 还有其他配置的我无法控制或无法修改的应用程序。如何使/ AppzillonServer工作。请提出建议。

server {
    #  listen       80;
    server_name  localhost;

    listen               443 ssl;
    # ssl                 on;
    # server_name          52.204.226.135;
    ssl_certificate      /etc/nginx/ssl/server.crt;
    ssl_certificate_key  /etc/nginx/ssl/server.key;

    #charset koi8-r;
    #access_log  /var/log/nginx/host.access.log  main;

    location / {

        index  index.html index.htm;
        root   /usr/share/nginx/html;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}
  location /Showroom{
        root  /home/demouser;
        index index.html;
    }

 #   location /shp-portal {
 #       proxy_pass http://52.204.226.135:8080/portalserver/demoshpportal/home-member-page;
 #   }
     location /portalserver {
        proxy_pass http://127.0.0.1:8082/portalserver;
   }
    location /portal {
        proxy_pass http://127.0.0.1:7777/portal;
    }
    location /AMSBBServices {
        proxy_pass http://127.0.0.1:8082/AMSBBServices;
   }
    location ~ \.(mp3|mp4){
        root /home/demouser;
   }

    location ~ ^/(card|mock)/ {
        proxy_pass http://127.0.0.1:8000;
   }
   location /AutoFinanceBase{
        proxy_pass http://127.0.0.1:8180/AutoFinanceBase;

   }
   location /AppzillonServer {
        proxy_pass http://127.0.0.1:8180/AppzillonServer/Appzillon;
   }

}

0 个答案:

没有答案