[Nginx] nginx-redirects-http-to-https-and-www-to-non-www
2018.04.21 02:03
71
0
https://eond.com/399511
server {
    listen 80;
    server_name eond.com www.eond.com;
    rewrite ^/(.*) https://eond.com/$1 permanent;
}

server {
    listen 443 ssl http2;
    server_name www.eond.com;
    ssl_certificate /etc/letsencrypt/live/eond.com/fullchain.pem;
   ssl_certificate_key /etc/letsencrypt/live/eond.com/privkey.pem;
   
    rewrite ^/(.*) https://eond.com/$1 permanent;
}

server {
    listen 443 ssl http2;
    server_name eond.com;

    ssl_certificate /etc/letsencrypt/live/eond.com/fullchain.pem;
       ssl_certificate_key /etc/letsencrypt/live/eond.com/privkey.pem;

    [ stuff goes here ]
}

라이믹스는 이온디와 함께

newcomment
웹팁
-
+
닫기

마이페이지

로그인을 해주세요