> -----Original Message----- > From: [email protected] On Behalf Of miahw > Sent: 19 March 2012 10:30 > To: Trac Users > Subject: [Trac] Trac URL > > Hello, > > I have a number of Trac repositories being served by Apache using the > configuration: > > <Location /trac> > SetHandler mod_python > PythonInterpreter main_interpreter > PythonHandler trac.web.modpython_frontend > PythonOption TracEnvParentDir /data/trac > PythonOption TracUriRoot /trac > > Order allow,deny > Allow from all > </Location> > > So any URL that follows /trac/project gets mapped to the above > directives. However, I would like access to another Trac project which > does not follow the above rules: > > <Location /ext/rcs> > SSLRequireSSL > > SetHandler mod_python > PythonInterpreter main_interpreter > PythonHandler trac.web.modpython_frontend > PythonOption TracEnv /data/trac/rcs > Options None > > AuthName "Cert auth" > AuthType Basic > AuthUserFile /etc/httpd/conf.d/trac/rcs.access > Require valid-user > </Location> > > However, I get the following error message when using the URL > https://trac-server/ext/rcs: > > Error: Not Found > No handler matched request to /rcs
I am not sure why you are getting this issue (I'm not a *nix user) but isn't `ext` a standard part of the *nix file system. Have you tried using a different path for testing purposes? Regardless, adding the second handler will not protect your code because your current layout means that the rcs project will be visible via the first handler anyway. I suggest that you move your `rcs` project out from under data/trac (or push your parent directory down another level e.g. /data/trac/public for the normal projects and /data/trac/protected for rcs) Finally, if you are fiddling, I would suggest investigating mod_wsgi instead of mod_python as the former is currently supported whilst the latter has no maintainer... > Any help will be greatly appreciated. > > Thanks in advance. Hope that helps! ~ Mark C -- 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.
