[Catalyst] Force https in generated URIs

Len Jaffe lenjaffe at jaffesystems.com
Thu Aug 4 15:47:23 GMT 2011

On Thu, Aug 4, 2011 at 11:34 AM, Tobias Klug <tklug at hartle-klug.de> wrote:

> Yes I have already looked at it. The Plugin redirects to the
> https-version of the page instead of just changing all links.
> In my setup the catalyst server runs on http. The requests come from a
> reverse proxy, that only accepts https-requests from the clients.
> Therefore I need to force all generated URIs to be https.
> I hope that clarifies my problem.

Since you're using your proxy as an SSL proxy, I'd make the proxy
postprocess the response body.
Or you could have catalyst to something like
$c->response->{body} =3D~ s/http:/https:/g
in your end action.


-- =

lenjaffe at jaffesystems.com   614-404-4214
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Asst. Scoutmaster Troop 156 - www.bsatroop156.org -
webmaster at bsatroop156.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110804/10e62=

More information about the Catalyst mailing list