ServerName localhost
/etc/apache2/conf.d 下增加文件 trac.conf
AuthType Basic
AuthName "Trac"
AuthUserFile /home/wang/Documents/trac/first-trac/passwd/trac.htpasswd
Require valid-user
#setup trac on mod_python
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/wang/Documents/trac/first-trac
PythonOption TracUriRoot /trac
Order allow,deny
Allow from all