Hello All,
I just set up Nginx reverse proxy to serve my mobile client app , all is working well exept
one issue which is
the proxy tried to optimize the url by removing what it thinks is unnecessary.. therefore
GET /MobileAppsServer/dwr/jsonp/MobileApplicationsServerImpl/getReadInItemIds/W,,I,A,V,S//15
^
get transformed to
GET /MobileAppsServer/dwr/jsonp/MobileApplicationsServerImpl/getReadInItemIds/W,,I,A,V,S/15
^
which casues the dwr engine to send wrong parameters to the function
Any idea how to avoid such issue ,below i have posted my reverse proxy config ?
Please advice
Thanks
server {
listen 80;
server_name wordpress.castix.local;
access_log on;
error_log on;
location / {
proxy_pass http://192.168.2.100:8080/;
proxy_redirect off;
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_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}
I just set up Nginx reverse proxy to serve my mobile client app , all is working well exept
one issue which is
the proxy tried to optimize the url by removing what it thinks is unnecessary.. therefore
GET /MobileAppsServer/dwr/jsonp/MobileApplicationsServerImpl/getReadInItemIds/W,,I,A,V,S//15
^
get transformed to
GET /MobileAppsServer/dwr/jsonp/MobileApplicationsServerImpl/getReadInItemIds/W,,I,A,V,S/15
^
which casues the dwr engine to send wrong parameters to the function
Any idea how to avoid such issue ,below i have posted my reverse proxy config ?
Please advice
Thanks
server {
listen 80;
server_name wordpress.castix.local;
access_log on;
error_log on;
location / {
proxy_pass http://192.168.2.100:8080/;
proxy_redirect off;
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_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}