stop automatic trailing slash addition
Edho Arief
me at myconan.net
Sat Dec 13 02:03:07 UTC 2014
On Sat, Dec 13, 2014 at 9:00 AM, neubyr <neubyr at gmail.com> 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 /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.
>
try reloading your nginx server.
Either that or you have directory /usr/share/nginx/test/test.
(or browser's cache)
More information about the nginx
mailing list