Static or dynamic content

2016-09-28 Thread Jens Dueholm Christensen
Hi I've got an issue where nginx (see below for version/compile options) returns a 405 (not allowed) to POST requests to clients when the upstream proxy returns a 503. I know nginx doesn't allow posts to static content, but since all content (even static js, png etc) is served by upstream I ca

Re: Static or dynamic content

2016-09-29 Thread Francis Daly
On Wed, Sep 28, 2016 at 11:01:36AM +, Jens Dueholm Christensen wrote: Hi there, > I've got an issue where nginx (see below for version/compile options) > returns a 405 (not allowed) to POST requests to clients when the upstream > proxy returns a 503. I don't see that, when I try to build a t

RE: Static or dynamic content

2016-09-30 Thread Jens Dueholm Christensen
On Friday, September 30, 2016 12:02 AM Francis Daly wrote, >> I've got an issue where nginx (see below for version/compile options) >> returns a 405 (not allowed) to POST requests to clients when the upstream >> proxy returns a 503. > I don't see that, when I try to build a test system. > Are yo

Re: Static or dynamic content

2016-09-30 Thread Francis Daly
On Fri, Sep 30, 2016 at 09:56:50AM +, Jens Dueholm Christensen wrote: > On Friday, September 30, 2016 12:02 AM Francis Daly wrote, Hi there, > >> I've got an issue where nginx (see below for version/compile options) > >> returns a 405 (not allowed) to POST requests to clients when the upstrea

RE: Static or dynamic content

2016-10-15 Thread Jens Dueholm Christensen
On Friday, September 30, 2016 12:55 AM Francis Daly wrote, >> No, I have an "error_page 503" and a similar one for 404 that points to two >> named locations, but that's it. > That might matter. > I can now get a 503, 404, or 405 result from nginx, when upstream sends a 503. [...] > Now

Re: Static or dynamic content

2016-10-17 Thread Francis Daly
On Sat, Oct 15, 2016 at 12:18:11PM +, Jens Dueholm Christensen wrote: > On Friday, September 30, 2016 12:55 AM Francis Daly wrote, Hi there, > > I suspect that when you show your error_page config and the relevant > > locations, it may become clearer what you want to end up with. > > My loca

RE: Static or dynamic content

2016-10-20 Thread Jens Dueholm Christensen
On Tuesday, October 18, 2016 08:28 AM Francis Daly wrote, > So: a POST for /x will be handled in @xact, which will return 503, > which will be handled in @error_503, which will be rewritten to a POST > for /error503.html which will be sent to the file error/error503.html, > which will return a 405

Re: Static or dynamic content

2016-10-20 Thread Francis Daly
On Thu, Oct 20, 2016 at 09:19:29AM +, Jens Dueholm Christensen wrote: > On Tuesday, October 18, 2016 08:28 AM Francis Daly wrote, Hi there, > > what output do you get when you use the test config in the earlier mail? > > Alas I did not try that config yet, but I would assume that my tests wo