how to emulate features of htaccess file

Timothy Ball timball at
Fri Jan 9 00:09:15 MSK 2009

my original apache .htaccess file for a site looked like this:

AuthUserFile /var/www/htpasswd
AuthType Basic
AuthName MySite
Require valid-user

BrowserMatchNoCase HAPPYBOT is_happy
Order Deny,Allow
Deny from all
Allow from env=is_happy
Satisfy Any

i figured i could do something close w/ the ngx_http_browser_module,
but i can't get the Passwd auth to work if i put in a thing to match
as a "modern" browser.

any hints or pointers would be appreciated.


        GPG key available on
pub  1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <timball at>
Key fingerprint = B579 29B0 F6C8 C7AA 3840  E053 FE02 BB97 511F BD54

More information about the nginx mailing list