When using nginx in front of several applications, In coming requests come to the nginx as encoded parameters but it reached to the backend application as decoded parameters. Because of that backend application rejects the massage since it accept encoded parameter.
In order to solve this problem, with the following configuration we can stop decoding query parameters at the nginx level.
In order to solve this problem, with the following configuration we can stop decoding query parameters at the nginx level.
location /t/ {
proxy_set_header X-Real-IP $remote_addr;
------
------
# proxy_next_upstream error timeout invalid_header http_500;
proxy_pass https://amalkaorg.app1.wso2apps.com$ request_uri;
}
The parameter added as $request uri is the full original request URI (with arguments)
Comments