How to redirect https://www to https:// in nginx?

I am trying to redirect https://www to https:// in nginx but never succeed. Below is my configuration file : server { listen 80; listen [::]:80; # server_name example.com www.example.com; return 301 https://example.com$request_uri; server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name example.com; index index.php; root /home/username/sites/example.com/public; ssl_certificate “/etc/letsencrypt/live/example.com/fullchain.pem”; ssl_certificate_key “/etc/letsencrypt/live/example.com/privkey.pem”; } What am…

Debug HTTPS hanging

I have a Pulse VPN Client running in Ubuntu 18.04 and facing problems when connecting over HTTPS to websites over the VPN. SSH and ping work fine. Chrome and Firefox both hang, ‘Establishing secure connection’ and ‘Performing TLS handshahe’. I tried using openssl to check the https [email protected]:~$ openssl s_client -connect jira.mycompany.local:443 CONNECTED(00000005) After CONNECTED…