新手配置 nginx 将 URL https://abc.com/u/123.html 显示成 https://abc.com/u/123
用了这个方法总是不成功
location ~/u {
root html;
index index.html index.htm index.php;
try_files $uri.html $uri/ =404;
}
用了这个方法总是不成功
location ~/u {
root html;
index index.html index.htm index.php;
try_files $uri.html $uri/ =404;
}