troke12 commented on issue #7317:
URL: https://github.com/apache/cloudstack/issues/7317#issuecomment-1491435876

   > @troke12 sorry I thought you are running with cloudstack 4.18 or 4.17. the 
ports are diferent in 4.16.
   > 
   > can you share your nginx setting ?
   
   here my setting
   
   ```nginx
   server {
           listen 80;
           listen [::]:80;
           server_name console.mydomain.id;
           return 301 https://$server_name$request_uri;
   
   }
   server {
           listen 443 ssl;
           listen [::]:443 ssl;
           server_name console.mydomain.id;
   
           #Certificate pathes
           ssl_certificate /etc/letsencrypt/live/npm-1/fullchain.pem;
           ssl_certificate_key /etc/letsencrypt/live/npm-1/privkey.pem;
   
           ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
           ssl_protocols TLSv1.2;
           ssl_prefer_server_ciphers on;
   
           client_max_body_size 3584K;
   
           location / {
                   proxy_pass http://172.16.25.31;
                   proxy_set_header Upgrade $http_upgrade;
                   proxy_set_header Connection 'upgrade';
                   proxy_set_header Host $host;
           }
   }
   
   server {
           listen 8080 ssl;
           listen [::]:8080 ssl;
           server_name console.mydomain.id;
   
           #Certificate pathes
           ssl_certificate /etc/letsencrypt/live/npm-1/fullchain.pem;
           ssl_certificate_key /etc/letsencrypt/live/npm-1/privkey.pem;
   
           ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
           ssl_protocols TLSv1.2;
           ssl_prefer_server_ciphers on;
   
           client_max_body_size 3584K;
   
           location /pop {
                  add_header Content-Type text/plain;
                  return 200 'gangnam style!';
           }
   
           location / {
                   proxy_pass http://172.16.25.31;
                   proxy_set_header Upgrade $http_upgrade;
                   proxy_set_header Connection 'upgrade';
                   proxy_set_header Host $host;
           }
   }
   ```
   
   for listen 8080 is not working, but if i try to setting to the 8443 is 
working `https://console.mydomain.id:8443/pop` 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to