From 2642bf1a6df887b4ab05496fbf0f6028036fb750 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 14 Jul 2009 08:53:37 +0000 Subject: use caseless regex locations on caseless filesystems: MacOSX, Win32, Cygwin --- src/http/ngx_http_core_module.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 9d614d450..e79dd1cd2 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2566,6 +2566,10 @@ ngx_http_core_regex_location(ngx_conf_t *cf, ngx_http_core_loc_conf_t *clcf, err.len = NGX_MAX_CONF_ERRSTR; err.data = errstr; +#if (NGX_HAVE_CASELESS_FILESYSTEM) + caseless = 1; +#endif + clcf->regex = ngx_regex_compile(regex, caseless ? NGX_REGEX_CASELESS: 0, cf->pool, &err); -- cgit