0
我按照下面的設置配置我的Nginx web服務器,它隱藏了.jsp擴展名,但沒有出現我的頁面。爲什麼我的nginx配置隱藏jsp擴展不能正常工作?
location ~ \.(jsp)$ {
proxy_pass http://192.168.2.225:9595;
if ($request_filename ~* ^(.*).jsp$)
{
rewrite ^/(.*).jsp$ /$1 redirect;
break;
}
}