[Radiant] HTTP_X_FORWARDED_HOST breaks Apache proxying
Oliver Baltzer
oliver.baltzer at nobits.com
Sat Jun 2 00:10:23 CDT 2007
On 02/06/07 01:00 AM, Earl Chew was heard to say:
> Earl Chew <earl_chew at yahoo.com> wrote:The problem is that when Apache forwards the request using proxypass, it includes the following in the HTML:
>
> ----------------------
> HTTP_X_FORWARDED_HOST: foo
> HTTP_USER_AGENT: Wget/1.10.2 (Red Hat modified)
> SCRIPT_NAME: /
> SERVER_PROTOCOL: HTTP/1.1
> HTTP_HOST: 127.0.0.1:3000
> ----------------------
Hi Earl,
the Apache headers are fine and are supposed to be set this way. The
problem is that Radiant/Rails does not know what the base URL of your
application is. Try setting:
ActionController::AbstractRequest.relative_url_root = '/radiant'
in your environment.rb. I am not sure if this is still the right way
of doing it, but it used to be like this a couple of months ago.
Cheers,
Oliver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: OpenPGP digital signature
Url : http://lists.radiantcms.org/pipermail/radiant/attachments/20070602/f21c7120/signature.bin
More information about the Radiant
mailing list