From 63a934510ec8af84e29517f3f87d75934ef3b8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 23 Oct 2024 15:09:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91=E7=8A=B6=E6=80=81=E7=A0=81=E4=B8=BA308?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/nginx/setter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nginx/setter.go b/pkg/nginx/setter.go index 995308c3..6f12560f 100644 --- a/pkg/nginx/setter.go +++ b/pkg/nginx/setter.go @@ -418,7 +418,7 @@ func (p *Parser) SetHTTPRedirect(httpRedirect bool) error { if !found497 && httpRedirect { directives = append(directives, &config.Directive{ Name: "error_page", - Parameters: []string{"497", "=307", "https://$host:$server_port$request_uri"}, + Parameters: []string{"497", "=308", "https://$host:$server_port$request_uri"}, }) }