使用NGINX作为反向代理的坏网关

使用NGINX作为反向代理的坏网关,nginx,Nginx,我一直在尝试使用NGINX作为反向代理从内部将流量重定向到,我可以看到我在8088上的服务正在运行,因为我可以访问它,当我尝试从https和端口443访问它时,它给了我一个502错误网关。Im运行的服务是Apache超集 我已经创建了cert.pem和key.pem文件。已经在location部分的/etc/nginx/conf.d/default.conf上尝试了几种组合,但到目前为止没有成功 server { listen 443 http2 ssl; se

我一直在尝试使用NGINX作为反向代理从内部将流量重定向到,我可以看到我在8088上的服务正在运行,因为我可以访问它,当我尝试从https和端口443访问它时,它给了我一个502错误网关。Im运行的服务是Apache超集

我已经创建了cert.pem和key.pem文件。已经在location部分的/etc/nginx/conf.d/default.conf上尝试了几种组合,但到目前为止没有成功

server {
      listen      443 http2 ssl;
      server_name localhost;

     ssl_certificate      /etc/ssl/cert.pem;
     ssl_certificate_key  /etc/ssl/key.pem;

      location / {
        add_header           Front-End-Https    on;
        add_header  Cache-Control "public, must-revalidate";
        add_header Strict-Transport-Security "max-age=2592000; includeSubdomains";
        proxy_pass_header Authorization;
        proxy_pass  http://localhost:8088;
        proxy_redirect off;
        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
        proxy_set_header        Host            $host;
        proxy_set_header        X-Real-IP       $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        Connection      "";
      }
}
我希望点击,它将显示我的服务,这是在运行