Showing posts with label configuration. Show all posts
Showing posts with label configuration. Show all posts

Thursday, 8 March 2012

Trac on Centos

cat httpd/conf.d/trac-project.conf

 #configuration 
#permament redirect for https
Redirect permanent http://path https://path
WSGIScriptAlias /project /var/www/html/project/cgi-bin/trac.wsgi
#with multiple project you need only alias it once 
Alias /trac/chrome/common /usr/share/trac/htdocs/common
Alias /trac/chrome/site /usr/share/trac/htdocs/site

<Directory /var/www/html/project/cgi-bin/>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>

<Location '/symphony'>
        SSLRequireSSL
        AuthType Basic
        AuthName "Trac symphony"
        AuthUserFile /usr/share/trac/projects/project/conf/trac.htpasswd
        Require valid-user
</Location> 



Back up trac
Since 0.13, trac back up include MySQL db back up, always good to have before upgrading.


 $ trac-admin /path/to/projenv hotcopy /path/to/backupdir
More info: http://trac.edgewall.org/wiki/0.13/TracBackup