2020-02-11 04:06:29 -06:00
|
|
|
# Configuration for {{ gitweb_url }}
|
|
|
|
# vim:ft=apache:
|
|
|
|
|
|
|
|
# Accept connections from non-SNI clients
|
|
|
|
SSLStrictSNIVHostCheck off
|
|
|
|
|
|
|
|
# Website configuration
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName {{ gitweb_url }}
|
|
|
|
Redirect permanent / https://{{ gitweb_url }}
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
|
|
SSLEngine on
|
|
|
|
SSLCertificateFile /etc/pki/cert/crt/{{ gitweb_url }}.crt
|
|
|
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ gitweb_url }}.key
|
|
|
|
SSLCertificateChainFile /etc/pki/cert/crt/{{ gitweb_url}}-fullchain.crt
|
2020-06-04 19:35:59 -05:00
|
|
|
SSLProtocol {{ ssl_protocol }}
|
2020-06-03 06:07:11 -05:00
|
|
|
SSLCipherSuite {{ ssl_cipher_suite }}
|
2020-02-11 04:06:29 -06:00
|
|
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">\
|
|
|
|
SSLOptions +StdEnvVars
|
|
|
|
</FilesMatch>
|
|
|
|
<Directory /usr/lib/cgi-bin>
|
|
|
|
SSLOptions +StdEnvVars
|
|
|
|
</Directory>
|
|
|
|
ServerName {{ gitweb_url }}
|
|
|
|
DocumentRoot {{ gitweb_webroot }}
|
|
|
|
<Directory "{{ gitweb_webroot }}">
|
|
|
|
Require all granted
|
|
|
|
AllowOverride All
|
|
|
|
Options MultiViews FollowSymlinks
|
|
|
|
</Directory>
|
2020-10-18 23:23:00 -05:00
|
|
|
IncludeOptional /etc/apache2/includes/{{ gitweb_url }}.conf
|
2020-02-11 04:06:29 -06:00
|
|
|
</VirtualHost>
|