我在nginx.conf中有以下重写规则
rewrite "^/licenses/GPL-3$" /licenses/gpl3 permanent;访问http://domain_name/licenses/GPL-3是将页面重定向到http://domain_name:8080/licenses/gpl3。
我不需要在url重定向的端口。http://domain_name/licenses/GPL-3应该重定向到http://domain_name/licenses/gpl3
发布于 2022-07-22 06:25:43
下面对重写规则的修改奏效了。
rewrite "^/licenses/GPL-3$" $scheme://$http_host/licenses/gpl3 permanent;https://stackoverflow.com/questions/73068010
复制相似问题