Welcome! Log In Create A New Profile

Advanced

stop automatic trailing slash addition

neubyr
December 12, 2014 07:02PM
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;
}

I tried above configuration, but nginx adds trailing slash to all '/test'
requests before they get processed by location directives. So all requests
are going to '/test/' location.

Is there any way to get separate namespace for /test and /test/ ? This not
for real world website. I am trying to learn more about location directive.

- N
_______________________________________________
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: 320
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