Nick, You need to make some changes to your conf: On Mon, 2004-03-15 at 10:07, Brian Clarkson wrote: > Nick Phillips wrote: > > > On 13/03/2004, at 11:08 AM, Elizabeth Cortell wrote: > > > >> I have a question for experienced Apache::AuthCookie users. The > >> module's test suite protects directories below the docroot and sets > >> the action of the login form to /LOGIN, an unprotected location. This > >> setup does not work for me as I need to protect the entire docroot. > >> Since LOGIN itself is protected, the login method is never called and > >> I never progress past the login screen. > >> > >> > >> Could someone suggest a configuration that would permit LOGIN to > >> invoke Apache::AuthCookie->login correctly but still protect the > >> entire docroot? > > > > > > Are you currently using <Location> or <Directory> tags to configure > > protection for the main body > > of your content? > > I'm having the same problem. > > I'm using this as the <Location> and <Files> directives as follows: > Use <Directory >, otherwise you are only protecting the "/" URL. <Directory "your.document.root"> > #<Location /> > AuthType TestCookie::AuthCookieHandler > AuthName TestCookie > PerlAuthenHandler TestCookie::AuthCookieHandler->authenticate > PerlAuthzHandler TestCookie::AuthCookieHandler->authorize > Require user programer > Options +ExecCGI > allow from all > #</Location> </Directory> < > > <Location /LOGIN> > AuthType TestCookie::AuthCookieHandler > AuthName TestCookie > SetHandler perl-script # and change: > # PerlHandler TestCookie::AuthCookieHandler->login PerlHandler TestCookie::AuthCookieHandler->login_screen > </Location> > > and all of this is within a <VirtualHost> container. > > ( I never saw a response to the list, and I'm abandoning my use of > Apache::AuthCookieDBI because I can't get it configured correctly. I > did post to the list for assistance, but no responses ... ) That would be too bad, it's a very nice solution. > > --brian
Regards, Rafael Caceres -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html