Edgewall Software

Changes between Version 45 and Version 46 of TracCgi


Ignore:
Timestamp:
Dec 26, 2009, 1:09:39 AM (14 years ago)
Author:
anatoly <techtonik@…>
Comment:

/chrome alias is evil

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v45 v46  
    6464Web servers such as [http://httpd.apache.org/ Apache] allow you to create “Aliases” to resources, giving them a virtual URL that doesn't necessarily reflect the layout of the servers file system. We already used this capability by defining a `ScriptAlias` for the CGI script. We also can map requests for static resources directly to the directory on the file system, avoiding processing these requests by CGI script.
    6565
     66There are two primary URL paths for static resources - `/chrome/common` and `/chrome/site`. Plugins can add their own resources usually accessible by `/chrome/plugin` path, so its important to override only known paths and not try to make universal `/chrome` alias for everything.
     67
    6668Add the following snippet to Apache configuration '''before''' the `ScriptAlias` for the CGI script, changing paths to match your deployment:
    6769{{{
    68 Alias /trac/chrome/common /path/to/www/trac/htdocs
     70Alias /trac/chrome/common /path/to/trac/htdocs
    6971<Directory "/path/to/www/trac/htdocs">
    7072  Order allow,deny