Chris wrote:
How would one specify a single <Location> block for all Trac projects? Currently, I have 2 projects, and this will grow. Last thing I want to do is edit the httpd.conf file every time I set up a new Trac project. So far I have this for each Trac project.# Project1 Trac setup <Location /projects/Project1> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv F:/tracrepo/Project1 PythonOption TracUriRoot /projects/Project1 </Location> # Project2 Trac setup <Location /projects/Project2> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv F:/tracrepo/Project2 PythonOption TracUriRoot /projects/Project2 </Location> How do I get out of specifying this for each Trac install? I have it so logging in uses the same file as shown below but to not know how to dynamically specify the locations for TracEnv and TracUriRoot in the options above. <LocationMatch "/projects/[^/]+/login"> ... AuthUserFile F:\tracrepo\trac.htpasswd ... </LocationMatch>
<Location /projects>
...
PythonOption TracEnvParentDir F:/tracrepo
...
</Location>
--Noah
signature.asc
Description: OpenPGP digital signature
