NameVirtualHost *:<%= port %> > ServerName <%= name %> DocumentRoot <%= docroot %> RewriteEngine On RewriteRule ^/$ /gitweb [R] > Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch AllowOverride All order allow,deny Allow from all AddHandler cgi-script cgi DirectoryIndex gitweb.cgi <%# if auth == true -%> AuthType Basic AuthName "Protected" AuthUserFile /usr/local/apache/passwd/passwords Require valid-user <%# end -%> ErrorLog /var/log/apache2/<%= name %>_error.log LogLevel warn CustomLog /var/log/apache2/<%= name %>_access.log combined ServerSignature Off