wiki:app2.0/new-nginx-conf

Version 1 (modified by pengzhanxuan, 11 years ago) (diff)

--

location ~ /app/{

rewrite /app/(.*)\.do(.*) /intf/app/$1.jsp$2 break;

proxy_next_upstream http_502 http_504 error timeout invalid_header; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; proxy_connect_timeout 10; proxy_read_timeout 60; proxy_cache_key $host$uri$is_args$args; add_header X-Cache '$upstream_cache_status from $server_addr'; proxy_pass  http://BEST_APP;

}