browser module

andre wang andre.ease at
Mon Apr 12 12:39:49 MSD 2010


i have an issue with browser module of nginx. i have set a list of
ancient_browsers in browser.conf :
    ancient_browser "GoBrowser" "MIDP" "WAP" "UP.Browser" "Obigo" "Mobile";

and configed one virutalhost :
    location / {
        if ($ancient_browser) { proxy_pass http://first; }
        proxy_pass http://second;

but when i include the browser.conf in the http context, the access to
the virtual host of matched agent
still proxyed to first, the debug log said it's a match. so i try to
include the browser.conf in the location,
then it works, so is this a bug or am i configing wrong?


More information about the nginx mailing list