Edgewall Software

Changes between Version 2 and Version 3 of TracLitespeed


Ignore:
Timestamp:
Feb 21, 2015, 11:24:49 AM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracLitespeed

    v2 v3  
    1 = Basic Multiproject under Litespeed =
     1= Basic Multiproject under Litespeed
    22
    33This document specifies how to modify an existing Trac setup to work with [http://litespeedtech.com/ Litespeed]. It assumes you have a working Trac install which can serve single Trac projects using the tracd server.
    44
    5 This document assumes some default paths, such as
     5This document assumes some default paths for the basic Trac installation, such as:
    66 * /usr/share/trac/
    77 * /usr/lib/python-[ver]/site-packages/trac/
    8 for the basic Trac installation.
    98
    10 This document _also_ assumes you wish to setup Trac to use a dedicated subdomain. It should be trivial, however, to change this behaviour.
     9This document also assumes you wish to setup Trac to use a dedicated subdomain. It should be trivial to change this behavior however.
    1110
    12 == Allowing project-based URL's in Trac ==
     11== Allowing project-based URL's in Trac
    1312
    14 Edit the Trac main.py file. On Linux this file can be found in /usr/lib/python-[ver]/site-packages/trac/web/main.py where [ver] is replaced with your python version (such as 2.4).
     13Edit the Trac main.py file. On Linux this file can be found in /usr/lib/python-[x.y]/site-packages/trac/web/main.py where [x.y] is replaced with your Python version (such as 2.4).
    1514
    16 Replace the line
     15Replace the line:
    1716{{{
    1817env.href = Href(req.cgi_location)
    1918}}}
    20 with
     19with:
    2120{{{
    2221env.href = Href(req.base_url)
    2322}}}
    24 save and exit
    2523
    26 This modification allows Trac to generate URL's based on the __project path__ rather than the cgi path.
     24This modification allows Trac to generate URL's based on the '''project path''' rather than the '''CGI path'''.
    2725
    28 You will also need to add the following line to each of your project's trac.ini files manually.
    29 
    30 Under [trac] add
     26Edit the trac.ini file. Under [trac] add:
    3127{{{
    3228base_url = /projects/[projectname]
    3329}}}
    3430
    35 The following example will make the 'test' project accessable at http://yourdomain.tld/projects/test
     31The following example will make the 'test' project accessable at http://yourdomain.tld/projects/test:
    3632{{{
    3733base_url = /projects/test
    3834}}}
    3935
    40 == Creating Litespeed Config ==
     36== Creating the Litespeed Config
    4137
    42 Using the Litespeed configuration panel
     38Using the Litespeed configuration panel:
    4339
    4440 * Create a Trac virtual host
     
    5046RewriteRule ^/projects/(.*)                     /index.html
    5147}}}
    52  * Add a Static context with the following
     48 * Add a Static context with the following:
    5349   * URI: /trac.cgi/chrome/common
    5450   * Location: /usr/share/trac/htdocs
     
    5652   * Enable Expires: No
    5753
    58  * Create a CGI context with the following
     54 * Create a CGI context with the following:
    5955   * URI: /
    6056   * Path: /usr/share/trac/cgi-bin/
     
    6258 * Save and reload Litespeed
    6359
    64 This will make project accessable through the address
     60This will make project accessable through the address:
    6561{{{
    6662http://subdomain.domain.tld/projects/[projectname]
    6763}}}
    6864
    69 == Basic Security ==
     65== Basic Security
    7066
    71 To set up a basic catch-all security net for your projects, simply follow this guide
     67To set up a basic catch-all security net for your projects, simply follow this guide:
    7268
    7369 * Create a new security realm using the Litespeed config and point it to your Password file.
    74    * Don't have one, use http://sherylcanter.com/encrypt.php to generate username:password combos.
     70   * If you don't have one, use http://sherylcanter.com/encrypt.php to generate username:password combos.
    7571 * Assign the security realm to the Trac CGI context.
    7672 * Trac will be able understand this security context.
     73
     74----
     75See also: BloodHound