Edgewall Software

Changes between Initial Version and Version 1 of TracPrettyUrls


Ignore:
Timestamp:
Nov 14, 2004, 11:55:01 PM (19 years ago)
Author:
daniel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracPrettyUrls

    v1 v1  
     1= Prettier URLs for Trac =
     2
     3If you would like the url to be like:
     4
     5http://<yourhostname>/
     6
     7or (maybe with a subdomain):
     8
     9http://<subdomain>.<yourhostname>/
     10
     11this is one way, using mod_rewrite (in Apache):
     12
     13load the module mod_rewrite, then, place this in your apache config:
     14(if you have subdomain, inside a !VirtualHost)
     15
     16{{{
     17RewriteEngine On
     18<Location "/cgi-bin/trac.cgi">
     19  SetEnv TRAC_ENV "/path/to/trac/env"
     20</Location>
     21
     22ServerName <hostname>
     23Alias /trac "/usr/share/trac/htdocs"
     24
     25ScriptAlias /cgi-bin /path/to/cgi-bin
     26RewriteRule ^/$ /cgi-bin/trac.cgi [R]
     27}}}
     28
     29
     30'''Note:''' This is actually not necessary. You can just use ScriptAliasMatch directly. I'll add an example later. -- DanielLundin
     31
     32----
     33See also: TracInstall, TracMultipleProjects