I have the following controller with routing annotation:
public function indexAction(Request $request) {
This works fine on my development server, however on my production server I get an infinite redirect route. I looked through the logs and this is caused by Symfony, not Apache. It does this all over again until my browser stops:
[2014-10-28 17:32:28] request.INFO: Matched route "checkout" (parameters: "_controller": "Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction", "path": "/checkout/", "permanent": "true", "scheme": "https", "httpPort": "80", "httpsPort": "443", "_route": "checkout") [] []
This does not make sense, since the page requests IS through HTTPS:
https://example.com/checkout/
I have no access_control parameters in security.yml that cover this. It is strange that all other controllers that do not use "scheme =" https "work.
source share