| 181 | === Alternative web server interface === |
| 182 | |
| 183 | At the time of writing, the above scripts appear to have problems with escape sequences in URLs. For example, this will mean you can't put spaces in milestone names, and you won't be able to browse source files whose names contain spaces. There is however an alternative way of presenting an AJP interface to Apache which can be configured to avoid this problem, and yet retain the advantages of running Trac in its own user account. |
| 184 | |
| 185 | The way to do this is to run `tracd` with `--protocol=ajp` and the `--unquote` switch that was added in trac 0.11.4 (if you're running an earlier version, refer to [/attachment/ticket/8128/t8128-tracd-unquote-r7943.patch this patch]). For example: |
| 186 | |
| 187 | {{{ |
| 188 | tracd --auth="*",/var/www/passwords/passwd,MyRealm --port=SERVER_PORT |
| 189 | --hostname=localhost --protocol=ajp --unquote --env-parent-dir=$HOME/projects |
| 190 | --base-path=/PROJECT_PATH --daemonize --pidfile=$HOME/trac.pid --umask=63 |
| 191 | }}} |
| 192 | |
| 193 | but all one line. It's probably easiest to put this in a shell script somewhere. You'll need to add this to the `trac` user's crontab to be executed at each reboot. |
| 194 | |