summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAdrien Thebo <adrien.thebo@gmail.com>2011-05-31 15:43:18 -0700
committerAdrien Thebo <adrien.thebo@gmail.com>2011-05-31 15:43:46 -0700
commit24267c75a335c166e76039feb4d410e0bc0a6847 (patch)
tree1894bd0ba97c6c447b127b9064ad97dfb21ce23b /templates
parent18310aa26c9fd5644115ef38722aaf75302ded53 (diff)
Added documentation, fixed ssl.
Diffstat (limited to 'templates')
-rw-r--r--templates/apache-gitweb.conf.erb8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/apache-gitweb.conf.erb b/templates/apache-gitweb.conf.erb
index dca3f5f..3b481a8 100644
--- a/templates/apache-gitweb.conf.erb
+++ b/templates/apache-gitweb.conf.erb
@@ -6,6 +6,12 @@ NameVirtualHost *:<%= port %>
RewriteEngine On
RewriteRule ^/$ /gitweb [R]
+<% if ssl == true -%>
+ SSLEngine on
+ SSLCertificateFile /etc/ssl/certs/gitweb.cert
+ SSLCertificateKeyFile /etc/ssl/private/gitweb.key
+<% end -%>
+
<Directory <%= docroot %>>
Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
@@ -13,12 +19,10 @@ NameVirtualHost *:<%= port %>
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 -%>
</Directory>
ErrorLog /var/log/apache2/<%= name %>_error.log