# Browser module

**URL:** <https://www.ruby-forum.com/t/browser-module/186785>\
**Category:** NGINX\
**Created:** [April 12, 2010, 10:40am UTC](https://www.ruby-forum.com/t/browser-module/186785 "2010-04-12T10:40:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andre\_wang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/77aa72/32.png) [@andre\_wang](https://www.ruby-forum.com/u/andre_wang)\
**Post date:** [April 12, 2010, 10:40am UTC](https://www.ruby-forum.com/t/browser-module/186785/1 "2010-04-12T10:40:49Z")

</div>

greetings

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](http://first); }  
proxy\_pass [http://second](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?

andre.ease  
2010.4.12
