as per subject, I'm playing around with the http browser module right now, and I just can't seem to get it to work.<br><br><a href="http://wiki.nginx.org/HttpBrowserModule">http://wiki.nginx.org/HttpBrowserModule</a> itself seems confused as well. In the first part ("Selection of the index file"), it uses the format 'modern_browser msie 5.5' - while in Examples, this format is pointed out as broken.<br>
<br>Either way - I'm expecting for the value of $ancient_browser to only be set when nginx actually detects an ancient browser as set up by the 'ancient_browser ...' lines. However, it seems that even without specifying any ancient_browser lines, the $ancient_browser value is set?<br>
<br><br>to show a snippet of my nginx.conf:<br>========<br>location / {<br> if ($ancient_browser) {<br> redirect .* /${ancient_browser}.html redirect;<br> }<br> proxy_pass <a href="http://127.0.0.1:1000">http://127.0.0.1:1000</a>;<br>
}<br>========<br><br>This triggers the redirect no matter what - FF3, MSIE 7, MSIE 8, ...<br><br>Am i doing anything wrong here? I'm using nginx 0.8.54, compiled from <a href="http://nginx.org">nginx.org</a> (and I havent disabled the http browser module)<br>
<br>thanks,<br>-jf<br><br clear="all">--<br>"Every nonfree program has a lord, a master --<br>and if you use the program, he is your master."<br> --Richard Stallman<br><br>"It's so hard to write a graphics driver that open-sourcing it would not help."<br>
-- Andrew Fear, Software Product Manager, NVIDIA Corporation<br><a href="http://kerneltrap.org/node/7228">http://kerneltrap.org/node/7228</a><br>