That was some serious turn-around time Noah! Thanks for the info too. It worked perfectly. I had searched the group and obviously didn't fully understand TracEnvParentDir's usage.
Thanks again! Chris On Apr 30, 1:37 pm, Noah Kantrowitz <[EMAIL PROTECTED]> wrote: > 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 > 1KDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
