HTTP requests and HTTP responses use header fields to send information about the HTTP messages. Header fields are colon-separated name-value pairs that are separated by a carriage return (CR) and a line feed (LF). A standard set of HTTP header fields is defined in RFC 2616, Message Headers. There are also non-standard HTTP headers available (and automatically added) that are widely used by the applications. Some of the non-standard HTTP headers have an X-Forwarded prefix. Classic Load Balancers support the following X-Forwarded headers.
Turn off “SSL required” in WordPress. The correct solution is for WordPress to detect that the client connected to the LB via HTTPS and not redirect the client to HTTPS. The key is to process X-Forwarded-Proto header. Here is a link that will explain in more detail:
Reference
- Php Server: HTTP_X_FORWARDED_SSL usage
- How do I redirect HTTP traffic to HTTPS on my Classic Load Balancer in ELB?
- WordPress with AWS ELB and SSL
- WordPress instance behind AWS Application Load Balancer and trouble with implementing HTTPS
- https://community.bitnami.com/t/wordpress-instance-behind-aws-application-load-balancer-and-trouble-with-implementing-https/57847
- https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/x-forwarded-headers.html#x-forwarded-proto
- https://stackoverflow.com/questions/30702490/how-to-fix-wordpress-https-issues-when-behind-an-amazon-load-balancer
- https://blog.lawrencemcdaniel.com/wordpress-aws-elb-ssl/
- https://aws.amazon.com/premiumsupport/knowledge-center/redirect-http-https-elb/
- https://docs.bitnami.com/aws/how-to/configure-elb-ssl-aws/
- https://stackoverflow.com/questions/44741282/php-server-http-x-forwarded-ssl-usage
- https://blog.lawrencemcdaniel.com/wordpress-aws-elb-ssl/
- https://blog.lawrencemcdaniel.com/wordpress-aws-elb-ssl/
- https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/x-forwarded-headers.html#x-forwarded-proto
- https://community.bitnami.com/t/wordpress-instance-behind-aws-application-load-balancer-and-trouble-with-implementing-https/57847/2
- https://stackoverflow.com/questions/51489257/wordpress-nginx-alb-ssl-link-issue
- https://stackoverflow.com/questions/30702490/how-to-fix-wordpress-https-issues-when-behind-an-amazon-load-balancer
- https://www.greeneggmedia.com/blog/entry/fixing-wordpress-redirect-loop-with-aws-elastic-load-balancer
- https://blog.lawrencemcdaniel.com/wordpress-aws-elb-ssl/
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND