George Nychis wrote: > Hi all, > > I am trying to configure my trac environment and apache server such > that a single trac project is my root location, but a user can still > access location /trac for a list of projects or /trac/PROJECT to reach > PROJECT. > > What I am trying is: > <Location "/trac"> > SetHandler mod_python > PythonHandler trac.web.modpython_frontend > PythonOption TracEnvParentDir /home/trac/ > PythonOption TracUriRoot /trac > </Location> > > > <Location /> > SetHandler mod_python > PythonHandler trac.web.modpython_frontend > PythonOption TracEnv /home/trac/cgran > PythonOption TracUriRoot / > </Location> > > However, when I try to access http://my.server.com/trac it tries to > handle it as /home/trac/cgran/trac which doesn't exist, it should be / > home/trac. Additionally, trying to access a single project such as > http://my.server.com/trac/PROJECT tries to be served as /home/trac/ > cgran/trac/PROJECT which should be /home/trac/PROJECT > > I'd greatly appreciate any help. >
Would a simple redirect do what you want? Couldn't you use mod_rewrite to redirect / to /trac/defaultproject? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
