502 Bad Gateway after server.xml is configured

Алексей Мешков March 22, 2020

here is default from sites enabled

server {
       client_max_body_size      11m;
       server_name  wiki.medfarminfo.ru:80;

       access_log  /var/log/nginx/localhost.access.log;

       location / {
               proxy_pass http://localhost:8090/;
               proxy_redirect off;
               proxy_set_header Host $host;
               proxy_set_header X-Real-IP $remote_addr;
               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       }

   listen 443 ssl; # managed by Certbot
   ssl_certificate /etc/letsencrypt/live/wiki.medfarminfo.ru/fullchain.pem; # managed by Certbot
   ssl_certificate_key /etc/letsencrypt/live/wiki.medfarminfo.ru/privkey.pem; # managed by Certbot
   include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
   ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
   if ($host = wiki.medfarminfo.ru) {
       return 301 https://$host$request_uri;
   } # managed by Certbot


       listen   80;
       server_name  wiki.medfarminfo.ru;
=======================================
here is my Connector section of server.xml from confluence conf



        HTTPS - Proxying Confluence via Apache or Nginx over HTTPS

        If you're proxying traffic to Confluence over HTTPS, uncomment the connector below and comment out the others.
        Make sure you provide the right information for proxyName and proxyPort.

        For more information see:
           Apache - https://confluence.atlassian.com/x/PTT3MQ
           nginx  - https://confluence.atlassian.com/x/cNIvMw
        ==============================================================================================================
       -->


       <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                  maxThreads="48" minSpareThreads="10"
                  enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                  protocol="org.apache.coyote.http11.Http11NioProtocol"
                  scheme="https" secure="true" proxyName="wiki.medfarminfo.ru" proxyPort="443"/>


==================================
cant understand where is problem



0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events