Last active
June 7, 2018 16:09
-
-
Save jaywilliams/6caae77d65ca69776a47 to your computer and use it in GitHub Desktop.
Magento 2 SSL Redirect Loop Fix (Apache + Varnish + Nginx)
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
# Add this to your the Magento .htaccess file located in your docroot | |
############################################ | |
## Nginx proxy HTTPS Fix for Magento | |
## Source: https://www.sonassi.com/blog/magento-kb/magento-https-redirect-loop-2 | |
SetEnvIf X-Forwarded-Proto https HTTPS=on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fixes the "This webpage has a redirect loop" error.