Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1519

Forcing HTTPS in Symfony PHP causes redirect loop behind AWS load balancer

$
0
0

I am trying to force HTTPS in my Symfony PHP application. The docs on this topic seem pretty straight-forward:

# config/routes.yamlsecure:    path:       /secure    controller: App\Controller\MainController::secure    schemes:    [https]

Basically just add schemes: [https] to the route.

But when I do this in my application and deploy (to an AWS EC2 instance using a load balancer) it appears to create a redirect loop.

enter image description here

What might be the issue here?


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>