From d30be34def7dce23faceeed6ed61f7ac6e4b8913 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:15:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9B=AE=E5=BD=95=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#3632)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/website_utils.go b/backend/app/service/website_utils.go index cd8530bfd..6a20a0e33 100644 --- a/backend/app/service/website_utils.go +++ b/backend/app/service/website_utils.go @@ -301,7 +301,7 @@ func delNginxConfig(website model.Website, force bool) error { if err := fileOp.DeleteFile(configPath); err != nil { return err } - sitePath := path.Join(constant.AppInstallDir, constant.AppOpenresty, nginxInstall.Name, "www", "sites", website.PrimaryDomain) + sitePath := path.Join(constant.AppInstallDir, constant.AppOpenresty, nginxInstall.Name, "www", "sites", website.Alias) if fileOp.Stat(sitePath) { _ = fileOp.DeleteDir(sitePath) }