mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 18:36:53 +08:00
Redirect fp.o to https://fp.o first, then to getfedora.org but not for hotspot.txt
This reverts commit 80ac144f78.
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
|
||||
- role: httpd/website
|
||||
site_name: fedoraproject.org
|
||||
sslonly: true
|
||||
cert_name: "{{wildcard_cert_name}}"
|
||||
server_aliases:
|
||||
- stg.fedoraproject.org
|
||||
|
||||
@@ -14,10 +14,14 @@
|
||||
ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge"
|
||||
{% endif %}
|
||||
|
||||
{% if site_name == "fedoraproject.org" %}
|
||||
Alias /static/hotspot.txt /srv/web/fedoraproject.org/static/hotspot.txt
|
||||
{% endif %}
|
||||
|
||||
{% if sslonly %}
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/.*
|
||||
RewriteCond %{REQUEST_URI} !/static/hotspot.txt
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE]
|
||||
{% else %}
|
||||
Include "conf.d/{{ site_name }}/*.conf"
|
||||
|
||||
Reference in New Issue
Block a user