[Trac] Style sheets ignored when using mod_python,
but work with tracd
Rasmus Back
rasmus.back at gmail.com
Fri Oct 7 06:39:34 CDT 2005
On 10/7/05, Christopher Lenz <cmlenz at gmx.de> wrote:
> Am 07.10.2005 um 09:17 schrieb Rasmus Back:
>
> > My setup is FC4 on AMD64. I installed the trac and clearsilver rpms
> > for FC3 from atrpms.net, since no x64 versions seem to be available
> > for FC4. My problem is that when I configure trac to work with
> > mod_python the project pages load without formatting or pictures. In
> > firefox I can see that it complains about the mime-type of the css
> > files and ignores them. But with the standalone tracd server
> > everything looks ok. My apache config for trac looks like this:
> >
> > <Location /trac>
> > SetHandler mod_python
> > # use for trac >= 0.9
> > #PythonHandler trac.web.modpython_frontend
> > # use for latest stable release 0.8.4
> > PythonHandler trac.ModPythonHandler
> > PythonOption TracEnvParentDir /home/vcsadmin/trac
> > PythonOption TracUriRoot /trac
> > AuthType Basic
> > AuthName "Trac projects"
> > AuthUserFile /home/vcsadmin/conf/users.conf
> > Require valid-user
> > </Location>
> >
> > All of the files under /home/vcsadmin are owned by the "apache" user.
> >
> >
>
> Please check the local documentation (of your installed Trac) for
> info how to install version 0.8.4.
> Or check an earlier version of the online TracModPython page:
>
> <http://projects.edgewall.com/trac/wiki/TracModPython?version=38>
>
Hi Christopher.
Thanks for the link. Version 38 of TracModPython mentions that there
can be trouble if the trac htdocs and mod_python both use /trac, so I
tried this config:
<Location /projects/test>
SetHandler mod_python
PythonHandler trac.ModPythonHandler
PythonOption TracUriRoot /projects/test
PythonOption TracEnv /home/vcsadmin/trac/test
</Location>
Still no style sheets. Further down in the documentation there's a
mention of making an alias for /trac/, like this:
Alias /trac/ /usr/share/trac/htdocs/
Now the project page loads correctly! So this missing alias and my
original <Location /trac> were apparently the cause of my problem?
Should the "Simple configuration" chapter in TracModPython be updated
to mention the alias?
Thanks,
Rasmus
More information about the Trac
mailing list