nginx localtion中想匹配 /index.html?page= 开头,或者匹配所有带有 ?的url,跳转到动态请求, location
Jlins 2014-10-27 03:51:15
nginx localtion中想匹配 /index.html?page= 开头,或者以 /index.html? 开头 或者匹配所有带有 ? 的url,跳转到动态tomcat处理,
location 这里如何写?
{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://tomcat;
}