static模块
static模块实现了root/alias功能时,发现访问目标是目录,但URL末尾未加/时,会返回301重定向
1.server_name_in_redirect指令
语法:server_name_in_redirect on | off;
默认:server_name_in_redirect off;
放置位置:http,server,location
2.port_in_redirect指令
语法:port_in_redirect on | off;
默认:port_in_redirect on;
放置位置:http,server,location
3.absolute_redirect 指令
语法:absolute_redirect on | off;
默认:absolute_redirect on;
放置位置:http,server,location
865



被折叠的 条评论
为什么被折叠?



