Try moving the redirect to the app layer.

This commit is contained in:
yackob03 2013-10-01 16:48:19 -04:00
parent a370130494
commit 0cba17efe3
3 changed files with 24 additions and 4 deletions

View file

@ -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