My question is about nginx location configuration blocks:
If I want to make a location with a space character (well,% 20) in the URL, I can do it like this:
location ^~ "/Style Library/" {
}
If I want to create a case-insensitive location, I can do it like this:
location ~* ^/StyleLibrary/ {
}
However, I cannot find a way to get case sensitive locations with working spaces. None of them work:
location ~* "^/Style Library/" {
}
location ~* ^/Style[^_]Library/ {
}
location ~* ^/Style\sLibrary/ {
}
location ~* ^/Style.Library/ {
}
Can anyone help?
source
share