Skip to content

Instantly share code, notes, and snippets.

@tigefa4u
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigefa4u/9330688 to your computer and use it in GitHub Desktop.
Save tigefa4u/9330688 to your computer and use it in GitHub Desktop.
trac wsgi conf
<VirtualHost *:80>
<Directory "/home/git/trac">
Options Indexes MultiViews
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
ServerAdmin sugeng@tigefa.org
ServerName trac.dev
ServerAlias trac.dev
<LocationMatch "/login">
AuthType Basic
AuthName "Trac"
AuthUserFile "/home/git/trac/users/trac.htpasswd"
Require valid-user
</LocationMatch>
### TRAC MOD_WSGI_CONFIGURATION ###
WSGIScriptAlias / "/home/git/trac/cgi-bin/trac.wsgi"
<Directory "/home/git/trac/cgi-bin">
WSGIApplicationGroup %{GLOBAL}
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
### TRAC MOD_PYTHON_CONFIGURATION ###
#<Location /trac>
# SetHandler mod_python
# PythonInterpreter main_interpreter
# PythonHandler trac.web.modpython_frontend
# PythonOption TracEnvParentDir "/opt/bitnami/apps/trac/trac_projects"
# PythonOption TracUriRoot /trac
#</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment