| 44 | '''Config for multiple host:'''[[BR]] |
| 45 | ''First you need the patch from the Ticket:'' #8525! |
| 46 | [[BR]] |
| 47 | The patch adds a function, which analyzes the REQUEST_URI and take a the part between[[BR]] |
| 48 | TRAC_REQUEST_LOCATION and the next ''/'' as a part of the folder to the trac environment. |
| 49 | [[BR]][[BR]] |
| 50 | Apache: |
| 51 | {{{ |
| 52 | WSGIPythonPath /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 | |
| 68 | Settings of the acctmgr_auth.wsgi: |
| 69 | {{{ |
| 70 | TRAC_REQUEST_LOCATION="/svn" |
| 71 | TRAC_ENV_PARENT="/srv/trac/envs" |
| 72 | PYTHON_EGG_CACHE="/path/to/eggs" |
| 73 | }}} |
| 74 | |