Hi Gerald,

If you're using Tomcat (or another servlet container that supports the JK protocol) this is quite easy to handle. First you need to set up two virtual hosts in your Apache config, a regular host listening on port 80 and an SSL host listening on port 443. Each of those virtual hosts is set to use mod_jk to forward to your Tomcat instance. By using mod_jk, all of the port stuff goes away from your URLs. Apache handles all the SSL stuff so Tomcat doesn't need to do it. And you should require no code changes, the scheme binding will just work.

Hope that helps
--Chris

On Jan 26, 2006, at 5:49 AM, Gerald Schöffel wrote:

Hi !

My first project at work I tried to use Tapestry for was canceled because of deadline constraints and some https-issues I could not solve at that time.

Ok, so I went back to Tapestry in my spare time - I think this framework is absolutely great. I want to use it for projects at work.

And now (getting around the Login-Page :) ) time is come to implement secure connections again :(

And I still have absolutely no idea, how to do this.

The 'scheme' binding used on links doesn't work for me - so there is no build in support for https in my point of view. Kent Tong gave me some hints at that time (building an own LinkRenderer) but I gave up because it got to complicated.

Why does the included scheme binding not work for me ?

Examples:

Tomcat on local machine, port 8080. The link rendered when using https-scheme looks like:

https://localhost:8080/myApp/my.page :(

Using Apache as a proxy running on port 80, forwarding to localhost on port 8080, the link looks like:

https://mydomain:80/myApp/my.page :(

When using an own LinkRenderer I could solve this problem - but then I have to use this Renderer on all links on my site - not to comfortable.

So for me, Tapestry doesn't do the job (maybe there is a solution I am not aware of - so please tell it to me :) ).

Currently my planning is to move all secured pages in /WEB-INF/ secure and use Apache as an proxy to forward this path to https (anyone aware of a source for downloading Apache binary with included ssl-support for Windows ? :) ).

But I am almost sure, that there is a solution out there.

So it would be great, if anyone could give me some hints (links or keywords) how to implement https 'the clever way' :)

Many thanks !!
Gerald

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to