case insensitive file system location support provided by locale only
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 20aba86..0ddfc04 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1204,7 +1204,7 @@
 
         n = (len <= (size_t) node->len) ? len : node->len;
 
-        rc = ngx_memcmp(uri, node->name, n);
+        rc = ngx_filename_cmp(uri, node->name, n);
 
         if (rc != 0) {
             node = (rc < 0) ? node->left : node->right;