How to do substitions (like perl s/// operator) in rewrites?

dobe nginx-forum at nginx.us
Sun Jan 10 20:09:55 MSK 2010


hi

the map module is case insensitive, it uses  ngx_hash_strlow to produce the key internally so this is not a problem

for the hypens problem i would generate a map file with two keys for each article id, one with and one without hyphens like:

title-1 1
title1 1

cheers, bernd

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,39425,39472#msg-39472




More information about the nginx mailing list