Various programs or scripts have achieved uppercase and lowercase letters system conversion function, today to talk about ngx_http_lower_upper_case, function is very simple, as can be used in any environment we can. A modular multi-multi-One solution according to their own circumstances. This module then sensitive to convert a string assigned to the variable. ttlsa group with the words "there is reasonable", the existence of the software is always the truth of his existence.
1. Installation module nginx
--add-module=path/to/circle_gif/directory
Specific method is no longer describes, with reference to the operation and maintenance of survival can be time <
how to install third-party modules nginx
>
2.upper / lower instruction
upper Syntax: upper $ var string configuration section: location turn smaller lower caps Syntax: lower $ var string configuration section: location uppercase small letter
3. nginx configuration
LOCATION / ttlsa_upper_lower Upper {$ var1 "the Hello, ttlsa.com"; $ var2 Lower "HELLO, TTLSA.COM"; $ var1 echo; echo $ var2;}
4. test
# curl http://test.ttlsa.com/ttlsa_upper_lower/
HELLO,TTLSA.COM
hello,ttlsa.com
5. Reference address
nginx module address: https: //github.com/replay/ngx_http_lower_upper_case/archive/master.zip ngx_http_lower_upper_case address: https: //github.com/replay/ngx_http_lower_upper_case site:
operation and maintenance lifetime
URL: http: / /www.ttlsa.com/html/3947.html
Reproduced in: https: //my.oschina.net/766/blog/211475