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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to