rendered paste body<Virtualhost *:80>
# HTTP vhost which exists purely to redirect to the HTTPS vhost.
ServerName trac.domain.com
ServerAlias *.trac.domain.com
RedirectPermanent / https://trac.domain.com/
</VirtualHost>
<Virtualhost *:443>
ServerName trac.domain.com
ServerAlias *.trac.domain.com
ServerAdmin webmaster@trac.domain.com
DocumentRoot /srv/trac.domain.com/
# SetEnv HTTPS 1
# To debug url rewrite
RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 2
# Added after asking someone in #apache how to remove /trac/
# its failling
RewriteRule ^/trac/(.*)$ /$1
LogLevel info
ErrorLog /var/log/apache2/trac.error.log
CustomLog /var/log/apache2/trac.access.log combined
<Location />
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /srv/trac.domain.com/
PythonOption TracUriRoot /
</Location>
<Location />
## LDAP Authentication stuff
</Location>
</VirtualHost>