From 2a6635e8e81f9a8a2c332047b6b8f738c716be80 Mon Sep 17 00:00:00 2001 From: xuexb Date: Sat, 9 Nov 2024 16:26:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20xiaowu.dev=20?= =?UTF-8?q?=E5=AD=90=E5=9F=9F=E5=90=8D=E4=B8=8D=E5=81=9A=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vhost/xiaowu.dev.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/vhost/xiaowu.dev.conf b/vhost/xiaowu.dev.conf index 4dd51e4..c3777e0 100644 --- a/vhost/xiaowu.dev.conf +++ b/vhost/xiaowu.dev.conf @@ -8,9 +8,21 @@ server { server { listen 443 ssl http2; - server_name *.xiaowu.dev xiaowu.dev; + server_name www.xiaowu.dev xiaowu.dev; include inc/ssl.xiaowu.dev.conf; rewrite ^(.*) https://xuexb.com$1 permanent; } + +server { + listen 443 ssl http2; + server_name *.xiaowu.dev; + + include inc/ssl.xiaowu.dev.conf; + + location / { + set $dyups $http_host; + include inc/proxy_nohost.conf; + } +}