| | 1 | location ~ ^/app/{ |
| | 2 | rewrite /app/(.*)\.do(.*) /intf/app/$1.jsp$2 break; |
| | 3 | proxy_next_upstream http_502 http_504 error timeout invalid_header; |
| | 4 | proxy_set_header Host $host; |
| | 5 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| | 6 | proxy_set_header X-Real-IP $remote_addr; |
| | 7 | proxy_redirect off; |
| | 8 | proxy_connect_timeout 10; |
| | 9 | proxy_read_timeout 60; |
| | 10 | proxy_cache_key $host$uri$is_args$args; |
| | 11 | add_header X-Cache '$upstream_cache_status from $server_addr'; |
| | 12 | proxy_pass http://BEST_APP; |
| | 13 | } |