Hello,in nginx1 use proxy_pass to nginx2,when http method is get that is ok,but 
when http method is post ,nginx2 has no access log,nginx1's response  status is 
302;  help please,thank you!!
nginx-config details:
nginx1-config:
server {   listen 80;   server_name ocs.aliyun.test;   access_log 
"pipe:/usr/sbin/cronolog /system/logs/ocs.%Y-%m-%d.log" aliyun_com;   location 
/widget/ {    proxy_pass http://openwidget.aliyun.test/;    proxy_redirect 
http://openwidget.aliyun.test/ /widget/;  } } 
 
nginx2-config:
server {   listen 80;   server_name openwidget.aliyun.test;   access_log 
"pipe:/usr/sbin/cronolog /system/logs/openwidget.%Y-%m-%d.log" aliyun_com;   
location / {    proxy_pass http://127.0.0.1:38782/openWidget/;    
proxy_redirect http://openwidget.aliyun.test/openWidget/ /;  } } 
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to