Here are some tips submitted for using TracDown when your setup uses the Trac handler for all pages.


If your trac installation is set up so that it's a handler for the url root of your website, i.e. if you go to:

https://projects.example.com/

and it opens a trac page, then you likely don't have the ability to serve files straight up via apache, since everything goes through the trac handler (mod_python or whatever).

To fix this, you can put another Location directive to tell trac to use the normal handler, rather than whatever is serving up trac.

For my setup, I add a directory under my trac installation called download. I then add the following directive to my apache setup.

<Location /download>
    SetHandler default-handler
</Location>

And this fixes it. Seems pretty trivial, but if you don't know apache (Like I didn't), it can be very frustrating to make TracDown work in this situation.

Hope this helps someone.

ryan@…


I have trac served up at the root and I use mod_rewrite but I did differently to make it work ;)

Alias /releases "C:/the/path/to/your/release/directory"

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/releases/(.*)
ScriptAliasMatch ^/(.*) "C:/your/path/to/Apache2/cgi-bin/trac.cgi/$1"

also if you want this mapped dir to be browsable

    <Directory "C:/the/path/to/your/release/directory">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

hope too this helps someone

zwetan@…