Ok, if I used template_dir = /home/claus/webapps/trac/.htdocs
it works proper. Thank you. I used the Apache-alias '/htdocs' first, because under the [trac]-section a htdocs_location = /home/claus/webapps/trac/.htdocs or under the [header_logo]-section a src = /home/claus/webapps/trac/.logos/logo_wiki_400x100.png don't work, only an Apache-alias get me further here. Is this so because 'templates_dir' will be used from genshi directly whereas 'htdocs_location' or the logo-src are trac-internal settings? Can you give me an explanation? Thanks for your help!! Claus Am Mittwoch, 8. August 2012 23:34:04 UTC+2 schrieb hasienda: > > -----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 view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/SVEivJZomIAJ. 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.
