X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=8dfc175a9e9e22664cc3dce63038eca087009b14;hb=8ddad083473c069f134706a90ded61edc04b1917;hp=5c594629469d8f1ff704c07c79ac0d572ca33ba0;hpb=196f06d1c984b33021702e221afea7520cb8c596;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 5c59462..8dfc175 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2674,6 +2674,18 @@ changes are made to the request. The host value for $c->req->base and $c->req->uri is set to the real host, as read from the HTTP X-Forwarded-Host header. +Additionally, you may be running your backend application on an insecure +connection (port 80) while your frontend proxy is running under SSL. If there +is a discrepancy in the ports, use the HTTP header C to +tell Catalyst what port the frontend listens on. This will allow all URIs to +be created properly. + +In the case of passing in: + + X-Forwarded-Port: 443 + +All calls to C will result in an https link, as is expected. + Obviously, your web server must support these headers for this to work. In a more complex server farm environment where you may have your