Trac authentication - Digest

I’m trying to set up authentication for my manual installation of trac. I’m going for digest instead of basic.
Following the instructions here, I added the following lines to .htaccess:

<Location “/trac/login”>
AuthType Digest
AuthName "trac"
AuthDigestDomain /trac
AuthUserFile /somewhere/trac.htpasswd
Require valid-user

Apache is throwing up the following error:

“Location not allowed here”

Is there something in the way Dreamhost accounts are setup that prevents from using the “Location” directive? Can’t really use the “Files” directive (like in this example) because Trac doesn’t seem to use filesystem files for the pages

I’m having the same problem, couldn’t figure it out, is there someone could make it work?

You can’t use in an .htaccess file.

is for an apache config file.

you want to use or or nothing at all if you want it to apply to everything

by the way, there’s a bug in IE which often makes it difficult to use digest authentication. IIRC, you can change a setting in the registry and it will work.