Hi all,

I have searched the list archives but could not find a straight answer to my 
problem.

I am trying to run trac in a single-project-environment on Apache/mod_python. I 
am as far as:
 - SVN works, repository created
 - created a new project with trac-admin
 - I could verify that it works with the tracd standalone server

Now I read http://trac.edgewall.org/wiki/TracModPython.

I could successfully create the /trac alias to the trac "htdocs" folder. Some 
questions:

 - Does the project directory for trac have to be accessible through apache? 
Meaning: does it have to be somewhere underneath the docroot? I have seen this 
section:

<Location /projects/myproject>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend 
   PythonOption TracEnv /var/trac/myproject
   PythonOption TracUriRoot /projects/myproject
</Location>

I created my project in /var/www/projects/whatever and therefore the above 
section in my httpd.conf reads:
<Location /projects/mwhatever>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend 
   PythonOption TracEnv /var/www/projects/whatever
   PythonOption TracUriRoot /projects/whatever
</Location>

I also have this:
<Location "/projects/whatever/login">
  AuthType Basic
  AuthName "myproject"
  AuthUserFile /var/www/projects/whatever/.htpasswd
  Require valid-user
</Location>
(I created the .htpasswd file)


Problem now:
When I access http://myserver/projects/whatever it just lists me the contents 
of the /var/www/projects/whatever directory. Shouldn't it pass processing of 
this folder to mod_python? The <Location> directive works, I just added a few 
dummy lines like "Require valid-user" and when I reloaded, it asked me for a 
username. So it seems to process the <Location /projects/whatever> directive 
correctly.

I think I should not put the trac project environment in this 
/var/www/projects/whatever folder. But what else to put there? Just the htdocs 
folder?

Please enlighten me :)

Oh yeah, it might be worthy to mention that I am running Debian GNU/Linux 
[testing] and installed all packages via the standard debian packages (apg-get 
install trac).

regards
Samuel


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to