[Trac] FAQ: static pages
Dimitri Maziuk
dmaziuk at bmrb.wisc.edu
Thu Jul 13 15:58:10 CDT 2006
On Thursday 13 July 2006 15:11, osimons.24238619 at bloglines.com wrote:
> > > Hi.
> > >
> > >> What is /proj/htdocs directory for, and is it documented
>
> anywhere?
>
> > > See for example:
> > > http://trac.edgewall.org/wiki/TracStandalone#Servingstaticcontent
> >
> > I see. So htdocs is there for tracd only.
>
> Not at all - it should
> work with any setup. I use it for Apache/mod_python in production, and
> fast_cgi in my dev/test setup. However, I only use it for projectlogo and
> similar 'safe' uses as there is no permission control on the resources
> through Trac.
>
> Any
> file placed inside the project htdocs directory can be referenced as:
> .../my-project/chrome/site/projectlogo.jpg
>
>
> The 'global' Trac htdocs directory is available as:
> .../my-project/chrome/common/trac_banner.png
OK, thanks. One minor problem is, links like <a href="api/"> don't work in
html pages in there. Resetting the handler to "default_handler" for
location "/projects/[^/]+/chrome/site" doesn't seem to work either. Maybe
I'll play with it some more sometime, but I don't mind keeping those pages in
a different directory anyway.
Dima
--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
More information about the Trac
mailing list