Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

stop automatic trailing slash addition (2 replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>