change tpyo and change nginx.conf to cert

This commit is contained in:
xiahaoshawn 2016-03-25 18:47:33 +08:00
parent d0da45960d
commit 9ee238d840

View File

@ -24,11 +24,11 @@ http {
server {
listen 443 ssl;
server_name harbordomian.com;
server_name harbordomain.com;
# SSL
ssl_certificate /etc/nginx/conf.d/harbordomian.crt;
ssl_certificate_key /etc/nginx/conf.d/harbordomian.key;
ssl_certificate /etc/nginx/cert/harbordomain.crt;
ssl_certificate_key /etc/nginx/cert/harbordomain.key;
# Recommendations from https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
ssl_protocols TLSv1.1 TLSv1.2;
@ -79,7 +79,7 @@ http {
}
server {
listen 80;
server_name harbordomian.com;
server_name harbordomain.com;
rewrite ^/(.*) https://$server_name$1 permanent;
}
}