# HTTP vhost which exists purely to redirect to the HTTPS vhost. ServerName trac.domain.com ServerAlias *.trac.domain.com RedirectPermanent / https://trac.domain.com/ 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/ Addhandler cgi-script .cgi # Options +ExecCGI -Indexes Options +ExecCGI DirectoryIndex trac.cgi #You have to allow people to read the files in htdocs Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all # Trac need to know where the database is located # SetEnv TRAC_ENV "/srv/trac.domain.com/" # ## LDAP Authentication stuff ## Requires module: 'mod_ldap_userdir.c' ## See: httpd.conf ## Known good ldap stuff here.