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 or even cake.
I would appreciate any feedback on this topic.
thx
On 17 Jan., 16:17, euromark <dereurom...@googlemail.com> wrote:
> 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 ($forwarded) {
> $ref = $forwarded;
> }
>
> The proxy setup is:
>
> ProxyRequests Off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
> ProxyPreserveHost On
> ProxyPass /http://192.../
> ProxyPassReverse /http://192..../
>
> HTTP_REFERER is set to the correct value "domain.com/some/action/with/
> params"
> HTTP_X_FORWARDED_HOST, though, is only "domain.com"
>
> why would cake use the host name here instead of sticking to the
> obviously correct referrer url?
> thx for any clarification
> I would like to avoid hacking the core method of the request class.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment