-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 08.08.2012 00:35, schrieb mutetella: > Hello, > > I'm confused about this behaviour: > > If I have a 'site.html' in the <env>/templates-path all works as > expected. If I put the same 'site.html' in another path, e. g. the > shared '/htdocs'-path Trac ignores it. > My Apache 'httpd.conf': > ... > Alias /htdocs /home/claus/webapps/trac/.htdocs > <Directory /home/claus/webapps/trac/.htdocs> > Order allow,deny > Allow from all > </Directory> > ... > > My 'trac.ini': > ... > [inherit] > plugins_dir = > templates_dir = /htdocs > ... > > What is wrong?
IMHO the whole approach is wrong. The Genshi template is retrieved from file system, not via HTTP by the Trac server internally. Why can't you use that path directly in trac.ini? This looks too complicated to me anyway. Just write templates_dir = /home/claus/webapps/trac/.htdocs Still there should be a reason for having htdocs and templates separated in Trac environments by default, so I would hesitate to mix one into the other even in inherited folders, but YMMV. Steffen Hoffmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAi20sACgkQ31DJeiZFuHfd9ACfVVw+2sZLOqLUVo+EVX7fuAfD ohgAnjzsCvUxUSZxSbS+fsttSd7pHRa1 =grDv -----END PGP SIGNATURE----- -- 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?hl=en.
