Re: stop automatic trailing slash addition

2014-12-14 Thread Francis Daly
On Sat, Dec 13, 2014 at 03:53:32PM -0800, neubyr wrote: > On Sat, Dec 13, 2014 at 12:00 AM, Francis Daly wrote: > > On Fri, Dec 12, 2014 at 04:00:29PM -0800, neubyr wrote: Hi there, > > > location /test { > > > root /usr/share/nginx/test; > > > } > > > > > >

Re: stop automatic trailing slash addition

2014-12-13 Thread neubyr
On Sat, Dec 13, 2014 at 4:25 PM, Valentin V. Bartenev wrote: > > 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 > co

Re: stop automatic trailing slash addition

2014-12-13 Thread Valentin V. Bartenev
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 t

Re: stop automatic trailing slash addition

2014-12-13 Thread neubyr
On Sat, Dec 13, 2014 at 12:00 AM, Francis Daly wrote: > > On Fri, Dec 12, 2014 at 04:00:29PM -0800, neubyr wrote: > > Hi there, > > > I was wondering if it's possible to have separate namespaces for '/test' > > and /test/'. > > They are different requests, and different request prefixes, so yes, >

Re: stop automatic trailing slash addition

2014-12-13 Thread Francis Daly
On Fri, Dec 12, 2014 at 04:00:29PM -0800, neubyr wrote: Hi there, > I was wondering if it's possible to have separate namespaces for '/test' > and /test/'. They are different requests, and different request prefixes, so yes, they can be handled in different location{}s. > location /test {

Re: stop automatic trailing slash addition

2014-12-12 Thread Edho Arief
On Sat, Dec 13, 2014 at 9:00 AM, neubyr wrote: > > I was wondering if it's possible to have separate namespaces for '/test' and > /test/'. For example: > > > location /test { > root /usr/share/nginx/test; > } > > location /test/ { >root

stop automatic trailing slash addition

2014-12-12 Thread neubyr
I was wondering if it's possible to have separate namespaces for '/test' and /test/'. For example: location /test { root /usr/share/nginx/test; } location /test/ { root /usr/share/nginx/test-slash; try_files $uri default.txt;