I met this problem, but i don't know why Cake use HTTP_X_FORWARDED_HOST for
referer ? Anyone know this ?
On Tuesday, January 17, 2012 10:17:51 PM UTC+7, euromark wrote:
I moved a project from a managed server to a server with some proxy
routing (apache mod_proxy).
But now
hey guys.
are there any experiences made yet in this field?
does anyone operate a cake app behind a proxy (apache or otherwise)
I still experience problems with
a) HTTP_HOST
b) refer(r)er
which can either result from inadequate config settings or because
they might not be handled well from apache
I moved a project from a managed server to a server with some proxy
routing (apache mod_proxy).
But now request::referer() is always the domain itself (not the actual
referrer url) due to
$ref = env('HTTP_REFERER');
$forwarded = env('HTTP_X_FORWARDED_HOST');
if