Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to force HTTPS behind an Amazon Web Services Elastic Load Balancer
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI}
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment