Skip to content

Instantly share code, notes, and snippets.

@League2EB

League2EB/default.conf

Last active Jun 1, 2020
Embed
What would you like to do?
443Port設定檔案
## 替換以下的「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;
}
@League2EB

This comment has been minimized.

Copy link
Owner Author

@League2EB League2EB commented Jun 1, 2020

[MOD] 修正網域範例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment