| 120 | IF you would like the url to be like: |
| 121 | http://<yourhostname>/ |
| 122 | or (maybe with a subdomain): |
| 123 | http://<subdomain>.<yourhostname>/ |
| 124 | this worked for me: |
| 125 | |
| 126 | load the module mod_rewrite |
| 127 | then, place this in your apache config: |
| 128 | (if you have subdomain, inside a VirtualHost) |
| 129 | {{{ |
| 130 | RewriteEngine On |
| 131 | <Location "/cgi-bin/trac.cgi"> |
| 132 | SetEnv TRAC_ENV "/path/to/trac/env" |
| 133 | </Location> |
| 134 | |
| 135 | ServerName <hostname> |
| 136 | Alias /trac "/usr/share/trac/htdocs" |
| 137 | |
| 138 | ScriptAlias /cgi-bin /path/to/cgi-bin |
| 139 | RewriteRule ^/$ /cgi-bin/trac.cgi [R] |
| 140 | }}} |
| 141 | |