Revert "Try moving the redirect to the app layer."
This reverts commit 0cba17efe3
.
This commit is contained in:
parent
9c32770250
commit
540815b943
3 changed files with 4 additions and 24 deletions
|
@ -8,6 +8,10 @@ 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