設定
/etc/apatche2/sites-available/trac
Listen 81 <VirtualHost *:81> ServerAdmin webmaster@localhost ServerName trac.example.com DocumentRoot /var/www ErrorLog /var/log/apache2/error.trac.log CustomLog /var/log/apache2/access.trac.log combined <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/www/trac PythonOption TracUriRoot /trac PythonOption PYTHON_EGG_CACHE /tmp </Location> # use the following for one authorization for all projects # (names containing "-" are not detected): <LocationMatch "/trac/[[:alnum:]]+/login"> AuthType Basic AuthName "trac" AuthUserFile /var/trac/.htpasswd Require valid-user </LocationMatch> </VirtualHost>
- http://localhost:81/trac でアクセス。プロジェクト一覧が表示される
- 右上ログインリンク押下
Trac Error Authentication information not available. Please refer to the installation documentation.