“ / usr / share / nginx / html / AppzillonServer”失败(2:无此类文件或目录)

时间:2019-03-22 09:10:29

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

我正在尝试运行应用程序AppzillonServer,但是我发现我在error.log中收到以下错误。为什么“ / usr / share / nginx / html /被加上前缀而不是https://52.204.226.135/AppzillonServer.Please指南我。

“ / usr / share / nginx / html / AppzillonServer”失败(2:无此类文件或目录)

我的代码如下

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;
    #}

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

    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 {
        root /opt/tomcat8/apache-tomcat-8.0.35/webapps/AppzillonServer;
        proxy_pass http://127.0.0.1:8180/AppzillonServer/Appzillon;
   }

}

0 个答案:

没有答案