I'm trying to configure a Trac install (with multiple projects), but also trying to create an accessible directory outside the Trac environment so that I can serve items separately. I've driven myself nuts with <Directory> and <Location> directives, but not having any luck.
I'd like the /var/projects/trac/... directories to be handled in the Trac/mod_python environment, accessed by " (preferable) or " I'd like the /var/projects/pics directory to be a standard site serving (mainly) picture, no python, and accessible via "
I've bodged up some code, but whenever I browse to " I get "environment not found" - referring to the Trac environment, I presume. I've got an Alias directive in the code, but that's just clutching at straws. Any help appreciated!
I'd like the /var/projects/trac/... directories to be handled in the Trac/mod_python environment, accessed by " (preferable) or " I'd like the /var/projects/pics directory to be a standard site serving (mainly) picture, no python, and accessible via "
I've bodged up some code, but whenever I browse to " I get "environment not found" - referring to the Trac environment, I presume. I've got an Alias directive in the code, but that's just clutching at straws. Any help appreciated!
Code:
Alias /pics /var/projects/pics
<Directory /var/projects/pics>
SetHandler default-handler
Order allow,deny
Allow from all
</Directory>
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/projects/trac
PythonOption TracUriRoot /trac
# Order allow,deny
# Deny from all
AuthType Basic
AuthName "Trac"
AuthBasicProvider "ldap"
[...]
</Location>