Welcome! Log In Create A New Profile

Advanced

dynamic document root and case insensitive mapping

Posted by ronnyg 
dynamic document root and case insensitive mapping
September 19, 2015 01:54PM
Hi,
I ve a bigger problem.
We use this config to map subdomain to dynamic document root:

server_name ~^(?<branch>.+?)\.oururl.com$;
root "/var/www/folder-$branch";

It is working, so far, UNTIL we have a non-small-letter in our directory-name. For example, path is:

/var/www/folder-BIG

big.oururl.com is not working because big is not found but BIG exists ...

My first idea was to make a command inside the init-script to make the file-system case-insensitive, but this was not working, either.

Is there any known option like CheckSpelling On/off in Apache to use for it inside Nginx to fix this ? Like mod_speling in Apache?

Symlink / Rename is not possible.

Thanks
Ronny
Re: dynamic document root and case insensitive mapping
September 19, 2015 03:48PM
Have a look at https://github.com/replay/ngx_http_lower_upper_case

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
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