Welcome! Log In Create A New Profile

Advanced

Case insensitive search with location block

Posted by tgoneil 
Case insensitive search with location block
May 18, 2019 12:19PM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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