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