31 lines
849 B
Plaintext
31 lines
849 B
Plaintext
|
# Configuration for {{ gitlab_url }}
|
||
|
# vim:ft=apache:
|
||
|
|
||
|
# Accept connections from non-SNI clients
|
||
|
SSLStrictSNIVHostCheck off
|
||
|
|
||
|
# Website configuration
|
||
|
<VirtualHost *:80>
|
||
|
ServerName {{ gitlab_url }}
|
||
|
Redirect permanent / https://{{ gitlab_url }}
|
||
|
</VirtualHost>
|
||
|
<VirtualHost *:443>
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile /etc/pki/cert/crt/{{ gitlab_url }}.crt
|
||
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ gitlab_url }}.key
|
||
|
SSLCertificateChainFile /etc/pki/cert/crt/{{ gitlab_url}}-fullchain.crt
|
||
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">\
|
||
|
SSLOptions +StdEnvVars
|
||
|
</FilesMatch>
|
||
|
<Directory /usr/lib/cgi-bin>
|
||
|
SSLOptions +StdEnvVars
|
||
|
</Directory>
|
||
|
ServerName {{ gitlab_url }}
|
||
|
DocumentRoot {{ gitlab_webroot }}
|
||
|
<Directory "{{ gitlab_webroot }}">
|
||
|
Require all granted
|
||
|
AllowOverride All
|
||
|
Options MultiViews FollowSymlinks
|
||
|
</Directory>
|
||
|
</VirtualHost>
|