nginx - Website won't work after ssl installation -
my website working before installed ssl certificate. however, once installed, website stopped working. nginx starts fine usual, , no errors, website doesn't work. here's code nginx config:
server { listen 80; server_name www.example.com; (example replaced domain name in code) location / { rewrite ^ https://$server_name$request_uri permanent; } } server { listen 443 ssl; server_name www.example.com; ssl_certificate /etc/nginx/ssl/example_com/ssl-bundle.crt; ssl_certificate_key /etc/nginx/ssl/example_com/example.key; ssl_prefer_server_ciphers on; location / { proxy_pass http://xxx.xx.xx.xxx:8004; proxy_http_version 1.1; proxy_set_header upgrade $http_upgrade; proxy_set_header connection 'upgrade'; proxy_set_header host $host; proxy_cache_bypass $http_upgrade; } }
Comments
Post a Comment