NameVirtualHost *:<%= port %> > ServerName <%= name %> DocumentRoot <%= docroot %> <% if ssl == true -%> SSLEngine on SSLCertificateFile /etc/ssl/certs/gitweb.cert SSLCertificateKeyFile /etc/ssl/private/gitweb.key <% end -%> > Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch AllowOverride All order allow,deny Allow from all AddHandler cgi-script cgi DirectoryIndex gitweb.cgi AuthType Basic AuthName "Gitweb" AuthUserFile /home/git/.htpasswd Require valid-user ErrorLog /var/log/apache2/<%= name %>_error.log LogLevel warn CustomLog /var/log/apache2/<%= name %>_access.log combined ServerSignature Off