I spoke too soon. I'm still getting the authentication not available error message.
-----Original Message----- From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Graham Dumpleton Sent: Friday, October 05, 2007 5:46 PM To: Trac Users Subject: [!! SPAM] [Trac] Re: Virtual Host with Multiple projects having login problems. Sorry, I missed the obvious when I first replied. Try: <LocationMatch "/[^/]+/login"> AuthType Basic AuthName "Deksesuma Trac Server" AuthUserFile /var/trac/.htpasswd Require valid-user </LocationMatch> The Location directive by default only does glob style matching, not regex. Thus you need to use LocationMatch with what you want to do. Graham On Oct 5, 9:48 pm, "Robert Rouse" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using a VPS with Plesk 8.2.1, so I'm running apache 2.0.58. > > When I switched the directives around, nothing changed. > > I might have to try wsgi if no one else comes up with a suggestion. > > -----Original Message----- > From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Graham Dumpleton > Sent: Thursday, October 04, 2007 10:33 PM > To: Trac Users > Subject: [!! SPAM] [Trac] Re: Virtual Host with Multiple projects having > login problems. > > On Oct 5, 10:43 am, Raiko <[EMAIL PROTECTED]> wrote: > > Hello, > > > I have the following directives in my apache configuration. > > > <Location /> > > SetHandler mod_python > > PythonHandler trac.web.modpython_frontend > > PythonOption TracEnvParentDir /var/trac/projects > > PythonOption TracUriRoot / > > </Location> > > <Location "/[^/]+/login"> > > AuthType Basic > > AuthName "Deksesuma Trac Server" > > AuthUserFile /var/trac/.htpasswd > > Require valid-user > > </Location> > > > When I try to log in, I get the "Authentication information not > > available" error message. I searched the group and I see similar > > directives, but they don't work for me. > > > If I put the directive under my main domain instead of a subdomain, it > > works. > > What version of Apache are you using? > > What happens if you change the order of the two Location directives > around so the more specific one comes first? Does it still not work. > > Does your physical document root directory specified by DocumentRoot > directive have files and/or subdirectories which match the lead > components of what would be the login URL? > > FWIW, the way that the Location directive is used with mod_python to > setup Trac causes a lot of problems at times because of interactions > with physical files in actual document root. The way the directives > are used in mod_wsgi avoids the problems that mod_python often has and > you may find it simpler to use mod_wsgi. :-) > > Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---