Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Case insensitive search with location block

$
0
0
The location block is set with the tilde/asterisk modifier for case insensitive search as:

location ~* /RPNNode {
root /usr/share/nginx/html;
index index.html index.htm;
}

Then, localhost/RPNNode serves the web page as desired, but localhost/rpnnode fails as does other variations of capitalization (RPNNODE, RpnNode, etc.)

How can the location block be specified to find various case insensitive urls?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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