wiki:Devel/TracSetup

Version 1 (modified by leo, 18 years ago) (diff)

--

<VirtualHost *:80>
  ServerAdmin leo@xerial.org
  ServerName trac.utgenome.org
  DocumentRoot /home/web/trac.utgenome.org
  ErrorLog logs/trac-utgenome-error_log
  CustomLog logs/trac-utgenome-access_log common

  RewriteEngine on
  RewriteRule ^/$ /project [R]


<Location /project>
  Options FollowSymLinks
  SetHandler mod_python
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir (path to the trac env folder) 
  PythonOption TracUriRoot /project
  SetEnv PYTHON_EGG_CACHE (path to the trac cache folder)
  PythonDebug on
</Location>

<LocationMatch "/project/[^/]+/login">
  AuthType Basic
  AuthName "Trac"
  AuthUserFile (path to the .htpasswd file)
  Require valid-user
</LocationMatch>

</VirtualHost>