This is python-like, not C-like

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-07-11 19:08:56 +00:00
parent 1bf2a7210d
commit 6d8240bd5b

View file

@ -16,14 +16,14 @@
ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge" ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge"
{% endif %} {% endif %}
{% if site_name == "fedoraproject.org" || site_name == "hotspot-nocache.fedoraproject.org" %} {% if site_name == "fedoraproject.org" or site_name == "hotspot-nocache.fedoraproject.org" %}
Alias /static/hotspot.txt /srv/web/fedoraproject.org/static/hotspot.txt Alias /static/hotspot.txt /srv/web/fedoraproject.org/static/hotspot.txt
{% endif %} {% endif %}
{% if sslonly %} {% if sslonly %}
RewriteEngine On RewriteEngine On
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/.* RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/.*
{% if site_name == "fedoraproject.org" || site_name == "hotspot-nocache.fedoraproject.org" %} {% if site_name == "fedoraproject.org" or site_name == "hotspot-nocache.fedoraproject.org" %}
RewriteCond %{REQUEST_URI} !/static/hotspot.txt RewriteCond %{REQUEST_URI} !/static/hotspot.txt
{% endif %} {% endif %}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE]