Welcome! Log In Create A New Profile

Advanced

Re: stop automatic trailing slash addition

Valentin V. Bartenev
December 13, 2014 07:28PM
On Saturday 13 December 2014 15:53:32 neubyr wrote:
[..]
> Thank you for pointing out debugging log. I think that helped in explaining
> this behavior.
>
> It seems like nginx is adding slash as uri name matches with corresponding
> directory and not file name. I thought nginx will return 404 in this case,
> but it adds trailing slash when matching directory is found.
>
> After adding trailing slash uri becomes /test/ and hence it matches next
> location block.
>
> Hope my understanding of debugging log is correct. Let me know if I am
> missing anything.
[..]

From the debug log it looks like that you have the try_files directive
in your "/test" location block. And the config you have mentioned before
isn't the one you are actually using.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

stop automatic trailing slash addition

neubyr December 12, 2014 07:02PM

Re: stop automatic trailing slash addition

Edho Arief December 12, 2014 09:04PM

Re: stop automatic trailing slash addition

Francis Daly December 13, 2014 03:02AM

Re: stop automatic trailing slash addition

neubyr December 13, 2014 06:54PM

Re: stop automatic trailing slash addition

Valentin V. Bartenev December 13, 2014 07:28PM

Re: stop automatic trailing slash addition

neubyr December 14, 2014 02:40AM

Re: stop automatic trailing slash addition

Francis Daly December 14, 2014 05:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready