60ef5a3fd0
Because of the way we're doing ssl on the centos, the ifmodule statements evaluate to false. Remove them. Change-Id: Iad771249c6dc5cf5ede493183f5cebb98c3deb69
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
<VirtualHost <%= scope.lookupvar("cgit::vhost_name") %>:80>
|
|
ServerName <%= scope.lookupvar("cgit::vhost_name") %>
|
|
ServerAdmin <%= scope.lookupvar("cgit::serveradmin") %>
|
|
|
|
ErrorLog /var/log/httpd/git-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/httpd/git-access.log combined
|
|
|
|
Redirect / https://<%= scope.lookupvar("cgit::vhost_name") %>/
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost <%= scope.lookupvar("cgit::vhost_name") %>:443>
|
|
ServerName <%= scope.lookupvar("cgit::vhost_name") %>
|
|
ServerAdmin <%= scope.lookupvar("cgit::serveradmin") %>
|
|
|
|
Alias /cgit-data /usr/share/cgit
|
|
ScriptAlias /cgit /var/www/cgi-bin/cgit
|
|
RewriteEngine On
|
|
RewriteRule ^/$ /cgit [R]
|
|
|
|
ErrorLog /var/log/httpd/git-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/httpd/git-access.log combined
|
|
|
|
SSLEngine on
|
|
|
|
SSLCertificateFile <%= scope.lookupvar("cgit::ssl_cert_file") %>
|
|
SSLCertificateKeyFile <%= scope.lookupvar("cgit::ssl_key_file") %>
|
|
<% if scope.lookupvar("cgit::ssl_chain_file") != "" %>
|
|
SSLCertificateChainFile <%= scope.lookupvar("cgit::ssl_chain_file") %>
|
|
<% end %>
|
|
</VirtualHost>
|