From 4675f042f97b38d24ebf066edbe490bbbe420b23 Mon Sep 17 00:00:00 2001 From: zk Date: Wed, 15 Jul 2026 20:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=A3=B8=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nginx.conf b/nginx.conf index 0cbe4e9..262415d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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 {