Edgewall Software

Changes between Version 26 and Version 27 of TracModPython


Ignore:
Timestamp:
Jun 6, 2005, 8:47:57 PM (19 years ago)
Author:
xris
Comment:

add note about LocationMatch, where someone asked if it could be done.

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v26 v27  
    144144A few things to note about this example:  all of the users are stored in one file, {{{/var/www/projects.yourdomain.com/security/users}}}.  Groups for these users are defined in the groups file, {{{/var/www/projects.yourdomain.com/security/groups}}}.  The Trac projects are all stored under {{{/var/trac}}}.
    145145
    146 To add a new project, you'll have to create a new user in the user file.  Then, create a new group for the project in the group file.  Finally, create a new <Location> block with a new {{{Require group}}} directive.  That about it.
    147 
    148 Note:  if there was a way to do conditional processing in configurations (I haven't figured it out, if there is), you could use the following setup:
    149 
    150 {{{
    151 <Location /*/login>
     146To add a new project, you'll have to create a new user in the user file.  Then, create a new group for the project in the group file.  Finally, create a new <Location> block with a new {{{Require group}}} directive.  That's about it.
     147
     148Note:  It's untested, but you might be able to use the following setup to authenticate any number of projects:
     149
     150{{{
     151<LocationMatch "/[[:alnum:]\-]+/login">
    152152   ...
    153 </Location>
    154 }}}
     153</LocationMatch>
     154}}}
     155
    155156
    156157== Troubleshooting ==