Websockets configuration with nginx and SSL

After adding the SSL certificates successfully, we are getting a timeout error on the browser.

See here screenshot of the browser's log:

[login to view URL]

Has anyone experienced anything similar? Please, let me know if you need more details of the set up.

See below our nginx configuration

listen 443 ssl; # managed by Certbot

ssl_certificate /etc/letsencrypt/live/[login to view URL]; # managed by Certbot

ssl_certificate_key /etc/letsencrypt/live/[login to view URL]; # managed by Certbot

include /etc/letsencrypt/[login to view URL]; # managed by Certbot

ssl_dhparam /etc/letsencrypt/[login to view URL]; # managed by Certbot

upstream chatserver {

server [login to view URL];


client_max_body_size 4G;

access_log /var/log/nginx/[login to view URL];

error_log /var/log/nginx/[login to view URL];

location = /[login to view URL] { access_log off; log_not_found off; }

location / {

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto https;

proxy_set_header Host $host;

proxy_redirect off;

if (!-f $request_filename) {

proxy_pass http://unix:/home/ubuntu/mywasi-root/mywasi/[login to view URL];



# include proxy_params;

location /ws {

# proxy_pass [login to view URL];

proxy_pass http://chatserver;

# proxy_pass http://localhost:8765;

proxy_connect_timeout 7d;

proxy_read_timeout 7d;

proxy_send_timeout 7d;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "upgrade";


auth_basic "Restricted content";

auth_basic_user_file /etc/nginx/.htpasswd;


location /static/ {

alias /home/ubuntu/mywasi-root/mywasi/staticfiles/;

autoindex off;


location /media/ {

alias /home/ubuntu/mywasi-root/mywasi/media/;

autoindex off;


Skills: Django, Linux, Nginx, Python, Web Security

See more: nginx websocket 501, nginx websocket timeout, nginx websocket over ssl, nginx websocket 301, nginx wss, nginx websocket 502, nginx websocket 101, nginx websocket module, webpage redirect loop nginx ssl, varnish nginx ssl, nginx ssl configuration, nginx ssl loop, nginx ssl subdomain, nginx ssl, virtualmin nginx ssl website, magento nginx ssl, webmin virtualmin nginx webmin virtualmin nginx ssl, configuration xampp ssl, phpmyadmin configuration nginx centos, vps configuration nginx php mysql

About the Employer:
( 0 reviews ) United Kingdom

Project ID: #17163525

6 freelancers are bidding on average $23 for this job

$30 USD in 1 day
(112 Reviews)

Expert in server management VPS, Dedicated, AWS, SSL Certificate, DNS, Centos, Cpanel/WHM/Plesk, Web panel, Apache Debian, Nginx, Ubuntu Power MTA, Interspire, Expert in Migration services I have 6+ years experience More

$27 USD in 1 day
(29 Reviews)

Hi, We will check complete configuration of SSL certificate installed and will also fix all the issue on the server. Thank you.

$25 USD in 1 day
(39 Reviews)
$25 USD in 1 day
(4 Reviews)

Hello. I can fix the issue. Please contact me over live chat. ready to start instantly. thankyou. .

$20 USD in 1 day
(1 Review)

I can easily do this task as my technical skills as well as good command over language makes me the best suitable candidate for this job

$10 USD in 1 day
(1 Review)