Skip to content

Instantly share code, notes, and snippets.

@mkurzeja
Created March 5, 2018 10:00
Show Gist options
  • Save mkurzeja/3a8ca249c54f96d92e6701bcba5c5f5c to your computer and use it in GitHub Desktop.
Save mkurzeja/3a8ca249c54f96d92e6701bcba5c5f5c to your computer and use it in GitHub Desktop.
Http to https redirect for apache behind a GCE ingress
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