symfony/symfony — Issue #3341: symfony in balanced environment - redirections
Author: sanctuary
Created: 2012-02-13 05:51:33+00:00
State: open

We have a strange issue.

In a load balance environment, using https for a route, symfony adds the port 4692 to each redirection, and fails.

We suppose apache is reporting that port in $_SERVER['SERVER_PORT'] .

The strange thing is that the right port is 443.

The hosting company (huge one for a huge client) is telling us that we DONT HAVE TO ADD PORT TO THE REDIRECTIONS.

This is complicated to change because I think symfony actually adds the port to each redirection.

We are using 2.0.9 version and config.yml parameter https_port does not work.

I am about to hack this file vendor/symfony/src/Symfony/Component/Routing/RequestContext.php and force 443 for all https, but I want to be sure thats my only solution.

Any ideas?