....
## trac rules
##
this is the way trac support recommend multiple projects
## so u only
have to have one entry in here but i can't get this to
work
#RewriteRule
^/projects/([[:alnum:]]+)(/?.*) /projects/trac.cgi$2
[E=TRAC_ENV:/var/lib/trac/$1]
#<LocationMatch
"/projects/[[:alnum:]]+/login">
# AuthType
Basic
# AuthName "trac"
# AuthUserFile
/path/to/trac.htpasswd
# Require
valid-user
#</LocationMatch>
## this would be
my equivalent rewrite rule, but fails... always says the env-var is not
set!!
#RewriteRule ^/trac/([[:alnum:]]+)(/?.*) http://www.oatsoft.org/cgi-bin/trac.cgi$2
[E=TRAC_ENV:"c:\\program\ files\\subversion\\trac\\oats"\\$1]
## scriptaliasmatch is
used as the alternative, and makes urls neater, but means i have to
use
## a separate location block per project... okay for now, but with
lots of projects... bad
ScriptAliasMatch
^/trac/([[:alnum:]]+)(/?.*) cgi-bin/trac.cgi$2
<LocationMatch
"/trac/[[:alnum:]]+/login">
AuthType
Basic
AuthName "Trac Portal"
AuthUserFile
.htpasswd
Require
valid-user
</LocationMatch>
<Location
"/trac/oats">
SetEnv TRAC_ENV "C:\Program
Files\Subversion\trac\oats\oats"
</Location>
<Location
"/trac/toy1">
SetEnv TRAC_ENV "C:\Program
Files\Subversion\trac\oats\toy1"
</Location>
<Location
"/trac/toy2">
SetEnv TRAC_ENV "C:\Program
Files\Subversion\trac\oats\toy2"
</Location>
<Location
"/trac/mousefood">
SetEnv TRAC_ENV "C:\Program
Files\Subversion\trac\oats\mousefood"
</Location>
....