Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trac, mod_python, and other directories

Status
Not open for further replies.

billieT

MIS
Dec 11, 2001
107
NZ
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!

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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top