diff --git a/backend/app/service/website_utils.go b/backend/app/service/website_utils.go index 8f7e6f33505f..1193b22cf935 100644 --- a/backend/app/service/website_utils.go +++ b/backend/app/service/website_utils.go @@ -372,7 +372,6 @@ func applySSL(website model.Website, websiteSSL model.WebsiteSSL, req request.We config := nginxFull.SiteConfig.Config server := config.FindServers()[0] server.UpdateListen("443", website.DefaultServer, "ssl") - server.UpdateListen("[::]:443", website.DefaultServer, "ssl") switch req.HttpConfig { case constant.HTTPSOnly: @@ -381,11 +380,9 @@ func applySSL(website model.Website, websiteSSL model.WebsiteSSL, req request.We server.RemoveDirective("if", []string{"($scheme"}) case constant.HTTPToHTTPS: server.UpdateListen("80", website.DefaultServer) - server.UpdateListen("[::]:80", website.DefaultServer) server.AddHTTP2HTTPS() case constant.HTTPAlso: server.UpdateListen("80", website.DefaultServer) - server.UpdateListen("[::]:80", website.DefaultServer) server.RemoveDirective("if", []string{"($scheme"}) } diff --git a/cmd/server/nginx_conf/website_default.conf b/cmd/server/nginx_conf/website_default.conf index 78590efcb8d7..d73b0081741e 100644 --- a/cmd/server/nginx_conf/website_default.conf +++ b/cmd/server/nginx_conf/website_default.conf @@ -1,7 +1,5 @@ server { listen 80; - listen [::]:80; - server_name ko.wp-1.com; index index.php index.html index.htm default.php default.htm default.html;