Changes between Version 2 and Version 3 of ModWsgiAcctmgrScript


Ignore:
Timestamp:
Feb 22, 2011, 7:26:44 PM (4 years ago)
Author:
H3llGhost
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModWsgiAcctmgrScript

    v2 v3  
    2323== Example ==
    2424
    25 Apache config:
     25'''Apache config for single host:'''
    2626{{{
    2727WSGIPythonPath /var/trac-0.11dev/lib/python2.4/site-packages
     
    4242The `TRAC_ENV` and `PYTHON_EGG_CACHE` need to be modified and set inside the script.
    4343
     44'''Config for multiple host:'''[[BR]]
     45''First you need the patch from the Ticket:'' #8525!
     46[[BR]]
     47The patch adds a function, which analyzes the REQUEST_URI and take a the part between[[BR]]
     48TRAC_REQUEST_LOCATION and the next ''/'' as a part of the folder to the trac environment.
     49[[BR]][[BR]]
     50Apache:
     51{{{
     52WSGIPythonPath /var/trac-0.11dev/lib/python2.4/site-packages
     53<VirtualHost *:80>
     54  ServerName hostname.domain
     55  <Location /svn>
     56    DAV svn
     57    SVNParentPath /srv/trac/repos
     58    SVNListParentPath Off
     59    AuthType Basic
     60    AuthName "Account Manager Auth"
     61    AuthBasicProvider wsgi
     62    WSGIAuthUserScript /path/to/script/acctmgr_auth.wsgi
     63    Require valid-user
     64  </Location>
     65</VirtualHost>
     66}}}
     67
     68Settings of the acctmgr_auth.wsgi:
     69{{{
     70TRAC_REQUEST_LOCATION="/svn"
     71TRAC_ENV_PARENT="/srv/trac/envs"
     72PYTHON_EGG_CACHE="/path/to/eggs"
     73}}}
     74
    4475== Recent Changes ==
    4576