diff --git a/wsgi.conf b/wsgi.conf index d4c459e2b..f5df7de10 100644 --- a/wsgi.conf +++ b/wsgi.conf @@ -7,11 +7,11 @@ WSGIPassAuthorization On WSGIChunkedRequest On - SetEnvIf X-Forwarded-Proto https HTTPS=1 + SetEnvIf X-Forwarded-Proto !http HTTPS=1 RewriteEngine On - RewriteCond %{HTTP:X-Forwarded-Proto} !https - RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=permanent] + RewriteCond %{HTTP:X-Forwarded-Proto} http + RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R=permanent] Alias /static /opt/python/current/app/static/