Last active
December 1, 2015 01:39
-
-
Save y13i/65a73493b55474f9a658 to your computer and use it in GitHub Desktop.
ELB経由のApacheで強制的にHTTPS接続させる(HTTPリクエストをHTTPSにリダイレクト)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment