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/
LogLevel info
ErrorLog /var/log/apache2/trac.error.log
CustomLog /var/log/apache2/trac.access.log combined
# Alias /trac/ "/usr/share/trac/htdocs/"
ScriptAlias /cgi-bin/ /usr/share/trac/cgi-bin/
<Directory "/usr/share/trac/cgi-bin/">
Addhandler cgi-script .cgi
# Options +ExecCGI -Indexes
Options +ExecCGI
DirectoryIndex trac.cgi
</Directory>
#You have to allow people to read the files in htdocs
<Directory "/usr/share/trac/htdocs/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Trac need to know where the database is located
# <Location "/cgi-bin/trac.cgi">
<Location "/cgi-bin/">
SetEnv TRAC_ENV "/srv/trac.domain.com/"
</Location>
# <Location />
<Location "/cgi-bin/trac.cgi/login">
## LDAP Authentication stuff
## Requires module: 'mod_ldap_userdir.c'
## See: httpd.conf
## Known good ldap stuff here.
</Location>
</VirtualHost>