Trailing Slash Redirect Loop Help

Alex Med nginx-forum at
Tue Oct 15 03:04:30 UTC 2019

Dear Francis:

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. 

Is there a way to tell nginx that if it gets a "/" from the upstream  to
leave it the way it is?  I guess I will give up the idea of having all urls
without a trailing slash.



P.S. I will look into having the APP remove the trailing slash since it
should know better what it is a directory or a file.

Posted at Nginx Forum:,273964,285872#msg-285872

More information about the nginx mailing list