0
我想转换现有的Apache的ProxyPass规则nginx的,但我不能确定如何配置超时等..阿帕奇nginx的proxy_pass配置
我的Apache规则如下
ProxyPass /ProcessRequest http://127.0.0.1:8080/MyApp/ProcessRequest timeout=180 KeepAlive=On
我的nginx的配置如下所示。我创建了一个新的位置的ProcessRequest但不知道如何confugre相当于超时= 180 =保持活动上
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
#root /usr/share/nginx/www/uidemo;
root /usr/share/nginx/www;
#root /usr/share/nginx/html
index index.html index.htm index.php;
# Make site accessible from http://localhost/
server_name localhost;
location/{
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
location /ProcessRequest {
proxy_pass http://127.0.0.1:8080/MyApp/ProcessRequest;
}
---
---