Last active
June 1, 2020 02:09
-
-
Save League2EB/a5d4c5f627fabf817b09da3c15973c25 to your computer and use it in GitHub Desktop.
443Port設定檔案
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 替換以下的「mdfk.com」為您自己的網域名稱 | |
## 替換以下的「mdfk.com」為您自己的網域名稱 | |
## 替換以下的「mdfk.com」為您自己的網域名稱 | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name www.mdfk.com mdfk.com; | |
root /var/www/html/mdfk/; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
ssl_certificate /etc/nginx/ssl/mdfk.com/fullchain.cer; | |
ssl_certificate_key /etc/nginx/ssl/mdfk.com/keyfile.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.mdfk.com mdfk.com; | |
#access_log /var/log/nginx/access.log; | |
#error_log /var/log/nginx/error.log; | |
#root /var/www/html/mdfk/; | |
rewrite ^/(.*) https://mdfk.com/$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[MOD] 修正網域範例