Skip to content

Instantly share code, notes, and snippets.

@y13i
Last active December 1, 2015 01:39
Show Gist options
  • Save y13i/65a73493b55474f9a658 to your computer and use it in GitHub Desktop.
Save y13i/65a73493b55474f9a658 to your computer and use it in GitHub Desktop.
ELB経由のApacheで強制的にHTTPS接続させる(HTTPリクエストをHTTPSにリダイレクト)
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