Created
March 5, 2018 10:00
-
-
Save mkurzeja/3a8ca249c54f96d92e6701bcba5c5f5c to your computer and use it in GitHub Desktop.
Http to https redirect for apache behind a GCE ingress
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} =http | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment