Random updates
Some fun with my Trac installs today. First of all, I converted them all to use the inherited .ini file, which avoids fun with “Why isn’t this change having any effect – oh, it’s not even looking at that!”
I also set up non-SSL access to the trac installs, and with a bit of rewrite magick, have it force logged in users to use SSL. This is actually pretty easy – set “secure_cookies=True” in the trac.ini, then setup the following rewrite rule in the non-SSL virtual host:
RewriteEngine On
RewriteRule ^/([^/]+)/login https://trac.allenjb.me.uk/$1/login [L]
Logging in now always redirects to the SSL address, and the cookies are only valid for SSL. (Don’t forget to clear any existing cookies)
For some strange reason, the Icekap trac instance had decided to randomly corrupt itself – it continually claimed it needed upgrading while trac-admin said it didn’t. I solved this by, in the trac installs directory:
mv icekap icekap.bak
../trac-create icekap "Icekap" nosvn
cp icekap.bak/db/trac.db icekap/db/
cp icekap.bak/conf/trac.ini icekap/conf/
trac-create is my own script which optionally creates an svn repo, then creates the trac instance for it – params are: directory “Project Name” [nosvn]
The PPF MediawikiRC plugin has been slowly progressing – it can now handle delete actions nicely, as well as marking minor changes and new articles. There’s probably lots it’s still missing (for example, user blocks is one thing I know it could have extra handling for), but I plan to implement these on a “when I can be bothered” basis now – it’s “good enough” for what I use it for at the moment and I’d rather move on to other projects.