Make a pagure.org -> pagure.io redirect
This commit is contained in:
parent
937a9ee558
commit
22e24e21be
1 changed files with 22 additions and 0 deletions
|
@ -27,6 +27,28 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
|
|||
{% endif %}
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
{% if env == 'pagure-staging' %}
|
||||
ServerName stg.pagure.org
|
||||
{% else %}
|
||||
ServerName pagure.org
|
||||
{% endif %}
|
||||
|
||||
SSLEngine on
|
||||
SSLProtocol all -SSLv2 -SSLv3
|
||||
# Use secure TLSv1.1 and TLSv1.2 ciphers
|
||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||
|
||||
SSLCertificateFile /etc/pki/tls/certs/docs.pagure.org.crt
|
||||
SSLCertificateChainFile /etc/pki/tls/certs/docs.pagure.org.intermediate.crt
|
||||
SSLCertificateKeyFile /etc/pki/tls/certs/docs.pagure.org.key
|
||||
{% if env == 'pagure-staging' %}
|
||||
Redirect permanent / https://stg.pagure.io/
|
||||
{% else %}
|
||||
Redirect permanent / https://pagure.io/
|
||||
{% endif %}
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
<VirtualHost *:443>
|
||||
{% if env == 'pagure-staging' %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue