I'm using haproxy 1.5-dev19 in front of Apache 2.4 (on Ubuntu 12.04).
Haproxy is listening on ports
443, and Apache is listening on
8080 — yet, when I output
$_SERVER['SERVER_PORT'] from PHP (5.5), it shows as
80, when it should be
That is, I would assume PHP sees the Apache server port, but that doesn't seem to be the case.
What could I be overlooking?