Re: x-accel-redirect enables caching for POST requests

2016-02-09 Thread gglater62
I found a workaround: set $method $request_method; if ($request ~ ^POST) { set $method POST; } fastcgi_param REQUEST_METHOD $method; Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263661,264447#msg-264447 ___ nginx mailing list nginx@nginx.

Re: x-accel-redirect enables caching for POST requests

2016-02-09 Thread Maxim Dounin
Hello! On Tue, Feb 09, 2016 at 01:06:21PM -0500, gglater62 wrote: > Hi, > > Are POST disallowed for X-Accel-Redirect? > There is setup: > nginx sends requests to Apache, which replies with X-Accel-Redirect and > X-Path-Info. > In X-Accel-Redirect there is path to php script, then nginx did do PO

Re: x-accel-redirect enables caching for POST requests

2016-02-09 Thread gglater62
Hi, Are POST disallowed for X-Accel-Redirect? There is setup: nginx sends requests to Apache, which replies with X-Accel-Redirect and X-Path-Info. In X-Accel-Redirect there is path to php script, then nginx did do POST or GET to that script, but it stopped to work since 1.9.10. Is there a possibil

Re: x-accel-redirect enables caching for POST requests

2015-12-24 Thread Maxim Dounin
Hello! On Thu, Dec 24, 2015 at 12:16:43AM +0300, Руслан Закиров wrote: > On Wed, Dec 23, 2015 at 7:19 PM, Maxim Dounin wrote: > > > On Wed, Dec 23, 2015 at 07:10:43PM +0300, Руслан Закиров wrote: > > > > > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin > > wrote: > > > > > > > X-Accel-Redirect

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 7:19 PM, Maxim Dounin wrote: > On Wed, Dec 23, 2015 at 07:10:43PM +0300, Руслан Закиров wrote: > > > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin > wrote: > > > > > X-Accel-Redirect changes a request from POST to GET. > > > > > > > No, it doesn't. Getting request method

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Maxim Dounin
Hello! On Wed, Dec 23, 2015 at 07:10:43PM +0300, Руслан Закиров wrote: > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin wrote: > > > X-Accel-Redirect changes a request from POST to GET. > > > > No, it doesn't. Getting request method POST on the backend and even form > data is intact. It does,

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 7:10 PM, Руслан Закиров wrote: > > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin wrote: > >> X-Accel-Redirect changes a request from POST to GET. >> > > No, it doesn't. Getting request method POST on the backend and even form > data is intact. > Output from the psgi app

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin wrote: > X-Accel-Redirect changes a request from POST to GET. > No, it doesn't. Getting request method POST on the backend and even form data is intact. -- Руслан Закиров Руководитель отдела разработки веб-сервисов +7(916) 597-92-69, ruz @

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Maxim Dounin
Hello! On Wed, Dec 23, 2015 at 03:54:31PM +0300, Руслан Закиров wrote: > Hi, > > If location /a/ redirects a POST request to location /b/ using > X-Accel-Redirect then result of the POST request is cached. > > Tested this and reproduced with nginx 1.6.3 and 1.9.7. > > Setup: > https://gist.git