Try moving the redirect to the app layer.
This commit is contained in:
parent
a370130494
commit
0cba17efe3
3 changed files with 24 additions and 4 deletions
|
@ -8,10 +8,6 @@ WSGIPassAuthorization On
|
|||
<VirtualHost *:80>
|
||||
SetEnvIf X-Forwarded-Proto https HTTPS=1
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
||||
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=permanent]
|
||||
|
||||
Alias /static /opt/python/current/app/static/
|
||||
<Directory /opt/python/current/app/>
|
||||
Order allow,deny
|
||||
|
|
Reference in a new issue