On Fri, 2006-08-04 at 22:33 +0200, Harold Naparst wrote: > I am completely confused by > http://trac.edgewall.org/wiki/TracModPython > I got trac running using tracd in about 10 minutes, and have spent the > past six > hours trying to understand what that wiki page could possibly be > saying. > > I installed the project environment to /var/trac/widgets. The entire > directory and all subdirectories > are owned by apache. ...snip... > <Location /projects/widgets> > SetHandler mod_python > PythonHandler trac.web.modpython_frontend > PythonOption TracEnv /var/trac/widgets > PythonOption TracUriRoot "/projects/widgets" > </Location> > > <Location /projects/widgets/login> > AuthType Basic > AuthName "widgets" > AuthUserFile /var/trac/widgets/.htaccess > Require valid-user > </Location> > > <VirtualHost *:80> > DocumentRoot /var/trac/widgets > ServerName widgets-r-us.com > <Directory /> > SetHandler mod_python > PythonHandler trac.web.modpython_frontend > PythonOption TracEnv /var/trac/widgets > PythonOption TracUriRoot / > </Directory> > <Location /login> > AuthType Basic > AuthName "Widget Trac Server" > AuthUserFile /var/trac/widgets/.htusers > Require valid-user > </Location> > </VirtualHost> > > Then I restart httpd, browse to widgets-r-us.com, wait about 30 > seconds, and I get a black and white page (no > decorations), with a Search box, a list of actions (the first one is > login), and then a Welcome to Trac 0.10 message.
You're mixing two different ways of configuring mod_python. Either use the "Simple Configuration" section, or the "Virtual Host Configuration" section, but you shouldn't have both. Also <Directory /> is not equivalent to <Location />. The <Directory> block is used to configure access to actual file paths on your local filesystem, which is not what you want. You need to use <Location /> when configuring Trac. -- Matthew Good <[EMAIL PROTECTED]> _______________________________________________ Trac mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac
