$request_method variable shows wrong value
mastercan
nginx-forum at forum.nginx.org
Tue Jan 17 16:48:51 UTC 2017
I have a setup where I'm using an Accel-Redirect header in php like this:
header("X-Accel-Redirect: /testxxx.php?".$_SERVER['QUERY_STRING']);
Furthermore I'm using HTTP/2.0 and SSL, running on nginx 1.11.8.
The problem is: When doing a POST request on my upload.php (which then does
an x-accel-redirect to testxxx.php) the $request_method has the value
"GET".
I have a section in my nginx php config where I use "add_header" to output
the value of $request_method. So that's how I know this value is set to
"GET".
Some weeks ago this was working correct. All I changed since then was
switching to HTTPS.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272029,272029#msg-272029
More information about the nginx
mailing list