| 76 | == Virtual Host Configuration == |
| 77 | |
| 78 | Below is the sample configuration required to set up your trac as a virtual server (i.e. when you access it at the URLs like |
| 79 | !http://trac.mycompany.com): |
| 80 | |
| 81 | {{{ |
| 82 | <VirtualHost * > |
| 83 | DocumentRoot /var/trac/myproject |
| 84 | ServerName trac.mycompany.com |
| 85 | <Directory /> |
| 86 | SetHandler mod_python |
| 87 | PythonHandler trac.web.modpython_frontend |
| 88 | PythonOption TracEnv /var/trac/myproject |
| 89 | PythonOption TracUriRoot / |
| 90 | </Directory> |
| 91 | <Directory /login> |
| 92 | AuthType Basic |
| 93 | AuthName "MyCompany Trac Server" |
| 94 | AuthUserFile /var/trac/myproject/.htusers |
| 95 | Require valid-user |
| 96 | </Directory> |
| 97 | </VirtualHost> |
| 98 | }}} |
| 99 | |