Re: read request body with http2

2019-10-15 Thread Maxim Dounin
Hello! On Mon, Oct 14, 2019 at 02:41:33PM -0400, Ansuel wrote: > this is what i have in the module handler function > > rc = ngx_http_read_client_request_body(r, ngx_http_test_read_req); > if (rc != NGX_OK && rc != NGX_AGAIN) { > return rc; > }

Re: Trailing Slash Redirect Loop Help

2019-10-15 Thread Francis Daly
On Mon, Oct 14, 2019 at 11:06:02PM -0400, Alex Med wrote: Hi there, > What I am perceiving from your answers is that if nginx can not know with > (!-d or the try_files) that the uri is a directory or a file, there is not > much it can do about not removing slashes from the uris it gets. Correct.

Re: Problems with redirects

2019-10-15 Thread Danny Horne
On 15/10/2019 14:08, Reinis Rozitis wrote: The problem is, whatever URL I put in the browser, it redirects to https://trisect.uk ___ server_name trisect.uk *.trisect.uk; return 301 https://$server_name$request_uri; } For that I don't think you can use

RE: Problems with redirects

2019-10-15 Thread Reinis Rozitis
> The problem is, whatever URL I put in the browser, it redirects to > https://trisect.uk ___ > server_name trisect.uk *.trisect.uk; > return 301 https://$server_name$request_uri; } For that I don't think you can use $server_name here because it will al

Re: Problems with redirects

2019-10-15 Thread Danny Horne
On 15/10/2019 13:56, j94305 wrote: I have no idea what you are really struggling with as you don't mention the actual challenge. The problem is, whatever URL I put in the browser, it redirects to https://trisect.uk ___ nginx mailing list nginx@nginx.

Re: Problems with redirects

2019-10-15 Thread j94305
Hi Danny, two comments: 1) Don't forget about $is_args$args to also pass any arguments supplied with the URL. 2) You cannot redirect requests with a request body, most importantly POST and PUT, so your rule is only applicable for GET/HEAD requests. I have no idea what you are really strugglin

Problems with redirects

2019-10-15 Thread Danny Horne
Hi all, I've been struggling to get redirects working the way I'd like, basically I want - http://trisect.uk > https://trisect.uk http://site1.trisect.uk > https://site1.trisect.uk http://site2.trisect.uk > https://site2.trisect.uk etc This is the server block doing the redirects - serve