处理裸域名问题
This commit is contained in:
+12
@@ -71,6 +71,18 @@ http {
|
||||
return 444;
|
||||
}
|
||||
|
||||
# 裸域名重定向:offerpai.com.cn → www.offerpai.com.cn
|
||||
server {
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name offerpai.com.cn;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/offerpai.com.cn.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/offerpai.com.cn.key;
|
||||
|
||||
return 301 https://www.offerpai.com.cn$request_uri;
|
||||
}
|
||||
|
||||
# OfferPie 前端
|
||||
# www.offerpai.com.cn → 10302
|
||||
server {
|
||||
|
||||
Reference in New Issue
Block a user