Skip to content

Instantly share code, notes, and snippets.

@kakwa
Created April 29, 2015 12:07
Show Gist options
  • Save kakwa/b060d34ca32bc468ce79 to your computer and use it in GitHub Desktop.
Save kakwa/b060d34ca32bc468ce79 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot /var/www/trac
ServerName trac.example.fr
SetEnv TRAC_ENV /var/www/trac
WSGIScriptAlias / /var/www/trac/apache/trac.wsgi
<Directory /var/www/trac/apache/>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
<Location /login>
Allow from All
AllowOverride All
AuthName "restrict posting"
AuthType Basic
AuthUserFile /var/www/trac/conf/users.db
require valid-user
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment