| | 1 | {{{ |
| | 2 | <VirtualHost *:80> |
| | 3 | ServerAdmin leo@xerial.org |
| | 4 | ServerName trac.utgenome.org |
| | 5 | DocumentRoot /home/web/trac.utgenome.org |
| | 6 | ErrorLog logs/trac-utgenome-error_log |
| | 7 | CustomLog logs/trac-utgenome-access_log common |
| | 8 | |
| | 9 | RewriteEngine on |
| | 10 | RewriteRule ^/$ /project [R] |
| | 11 | |
| | 12 | |
| | 13 | <Location /project> |
| | 14 | Options FollowSymLinks |
| | 15 | SetHandler mod_python |
| | 16 | PythonHandler trac.web.modpython_frontend |
| | 17 | PythonOption TracEnvParentDir (path to the trac env folder) |
| | 18 | PythonOption TracUriRoot /project |
| | 19 | SetEnv PYTHON_EGG_CACHE (path to the trac cache folder) |
| | 20 | PythonDebug on |
| | 21 | </Location> |
| | 22 | |
| | 23 | <LocationMatch "/project/[^/]+/login"> |
| | 24 | AuthType Basic |
| | 25 | AuthName "Trac" |
| | 26 | AuthUserFile (path to the .htpasswd file) |
| | 27 | Require valid-user |
| | 28 | </LocationMatch> |
| | 29 | |
| | 30 | </VirtualHost> |
| | 31 | }}} |