更新 nginx.conf
This commit is contained in:
@@ -29,7 +29,7 @@ http {
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name www.abc.com;
|
||||
server_name mosr.feashow.cn;
|
||||
return 301 https://$host$request_uri; # 强制跳转HTTPS
|
||||
}
|
||||
# 新增HTTPS服务器块
|
||||
@@ -38,7 +38,7 @@ http {
|
||||
listen [::]:443 ssl;
|
||||
server_name www.abc.com;
|
||||
|
||||
# SSL证书配置(路径根据实际位置调整)
|
||||
# SSL证书配置
|
||||
ssl_certificate /etc/nginx/mosr.feashow.cn_chain.crt;
|
||||
ssl_certificate_key /etc/nginx/private.key;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user