Here's how I solve this problem with Tomcat and OpenShift:

I declare these Symbol values:

tapestry.hostname=<my-app>.rhcloud.com
tapestry.hostport=80
tapestry.hostport-secure=443
tapestry.secure-enabled=true

I put @Secure to my pages.

And I declare RemoteIpValve in my application context like this:

<?xml version="1.0" encoding="UTF-8"?>
<Context>
    <Loader delegate="true"/>

    <Valve className="org.apache.catalina.valves.RemoteIpValve"
protocolHeader="x-forwarded-proto" />

    <Resource name="jdbc/app-name" auth="Container"
type="javax.sql.DataSource"
        ...>
    </Resource>
</Context>

This tomcat instance is running on port 8080 and 8433 in the cloud.

On Tue, Jun 4, 2013 at 7:57 PM, Richard Frovarp <rfrov...@apache.org> wrote:

> On 05/31/2013 02:45 PM, John wrote:
>
>> My tapestry app doesn't work with SSL set up, the links have port 443
>> added but start http://.
>>
>> There must be some configuration missing?
>>
>> John
>>
>>
> You may also want to look at: MetaDatConstants.SECURE_PAGE. I know even
> with AJP proxying to Tomcat, we've ran into troubles. We just set that to
> true when in production, and that fixes our links.
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to