Forum: NGINX how to emulate features of htaccess file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Timothy B. (Guest)
on 2009-01-08 23:20
(Received via mailing list)
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.

--timball
This topic is locked and can not be replied to.