请问, 如何让Nginx中URL不区分大小写
请教啦!:lol nginx在./configure 参数里加上--with-http_perl_module 重新编译安装在nginx.conf http段里增加
perl_set $url '
sub {
my $r = shift;
my $re = lc($r->uri);
return $re;
}
';
需要区分大小的server里增加:
if ($uri ~ ){
rewrite ^(.*)$ $url last;
}
重启nginx
页:
[1]