map module not working with new 1.1.0

Rami Essaid rami.essaid at gmail.com
Tue Aug 9 23:45:47 UTC 2011


Hi Guys,

Has anyone experienced any issues with the map module using the new 1.1.0
compile of nginx?  I am mapping user agents and under 1.0.5 everything
worked great, with the new version the exact same config doesnt seem to be
working. I've tried two different maps based on previous comments and
neither seem to work.  Anyone else?


http {
....
map $http_user_agent $searchengine {
default 0;
 ~(?i)mozilla 1;
~*mozilla 1;
}
 ...
 location / {
....
      if ($searchengine){
  #return 418;
     rewrite ^ /testing/ redirect;
  }
...

-- 
Cheers,
Rami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110809/429a065a/attachment.html>


More information about the nginx mailing list