You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Carl Crowder <ca...@taptu.com> on 2009/04/07 17:51:09 UTC
T5 Apache Proxy + SSL
Hi all,
I'm running Apache as a proxy for my app. The app runs on port 9080,
plain HTTP, while Apache presents it to the outside world as
"https://<host>:9443".
All my redirects are broken :( I end up at "http://<host>:9443".
I am using ProxyPassHost.
I'm also doing:
public void contributeAlias( Configuration<AliasContribution<?>>
configuration ) {
BaseURLSource source = new BaseURLSource() {
public String getBaseURL( boolean secure ) {
return "https://<host>:9443";
}
};
configuration.add(AliasContribution.create(BaseURLSource.class, source));
}
However this is never called. This used to work a long time ago (when I
was using T5.0.13. Has anything changed since then to do with
BaseURLSource? The documentation in the version I'm currently using
(5.0.18) implies this is still its purpose. Does anyone know what I can
do to fix this?
Thanks in advance,
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 Apache Proxy + SSL
Posted by Carl Crowder <ca...@taptu.com>.
Ok, I found that by decorating the RequestSecurityManager service and
overriding getBaseURL(Page page) I was able to fix this. However as
RequestSecurityManager is part of the "internal" package I doubt this is
the best solution. I'll use it for now as it works but please let me
know if there is a correct way to do this.
Carl Crowder wrote:
> Hi all,
>
> I'm running Apache as a proxy for my app. The app runs on port 9080,
> plain HTTP, while Apache presents it to the outside world as
> "https://<host>:9443".
>
> All my redirects are broken :( I end up at "http://<host>:9443".
>
> I am using ProxyPassHost.
>
> I'm also doing:
>
> public void contributeAlias( Configuration<AliasContribution<?>>
> configuration ) {
> BaseURLSource source = new BaseURLSource() {
> public String getBaseURL( boolean secure ) {
> return "https://<host>:9443";
> }
> };
> configuration.add(AliasContribution.create(BaseURLSource.class, source));
> }
>
> However this is never called. This used to work a long time ago (when I
> was using T5.0.13. Has anything changed since then to do with
> BaseURLSource? The documentation in the version I'm currently using
> (5.0.18) implies this is still its purpose. Does anyone know what I can
> do to fix this?
>
> Thanks in advance,
> Carl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org