Edgewall Software

Changes between Version 42 and Version 43 of TracCgi


Ignore:
Timestamp:
Sep 23, 2009, 10:41:48 AM (15 years ago)
Author:
anatoly techtonik <techtonik@…>
Comment:

mapping static resources correctly

Legend:

Unmodified
Added
Removed
Modified
  • TracCgi

    v42 v43  
    8989}}}
    9090
    91 Alternatively, you can set the `htdocs_location` configuration option in [wiki:TracIni trac.ini]:
     91Alternatively to hacking `/trac/chrome/site`, you can directly specify path to static resources using `htdocs_location` configuration option in [wiki:TracIni trac.ini]:
    9292{{{
    9393[trac]
    94 htdocs_location = /trac-htdocs
     94htdocs_location = http://yourhost.example.org/trac-htdocs
    9595}}}
    9696
    9797Trac will then use this URL when embedding static resources into HTML pages. Of course, you still need to make the Trac `htdocs` directory available through the web server at the specified URL, for example by copying (or linking) the directory into the document root of the web server:
    9898{{{
    99 $ ln -s /usr/share/trac/htdocs /var/www/your_site.com/htdocs/trac-htdocs
     99$ ln -s /path/to/www/trac/htdocs /var/www/yourhost.example.org/trac-htdocs
    100100}}}
    101101