Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1535

how to configure nginx to serve static site over https?

$
0
0

I have a static html site that is working normal over http, but is not working over https,I don't know what is wrong, here is my nginx config file:

server {    listen 80;    listen 443 ssl;    root /var/www/site.com/site;    index index.html index.htm index.nginx-debian.html;    server_name site.com www.site.com;    ssl_certificate /etc/nginx/ssl/site.com/site.com;    ssl_certificate_key /etc/nginx/ssl/site.com/myserver.key;    ssl_prefer_server_ciphers on;    location / {            try_files $uri $uri/ =404;    }

}


Viewing all articles
Browse latest Browse all 1535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>