Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Redirect to https
Redirect to https [message #901573] Mon, 13 August 2012 13:27 Go to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Hi,

maybe a stupid question, but how can I redirect ALL request of my RAP application to the https port? I want the users to always use https.

thanks,
~Ingo
Re: Redirect to https [message #901579 is a reply to message #901573] Mon, 13 August 2012 13:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Ingo,
this FAQ topic should help:
http://wiki.eclipse.org/RAP/FAQ#How_can_I_test_my_application_with_HTTPS.3F
Best,
Ivan

On 8/13/2012 4:27 PM, Ingo Meyer wrote:
> Hi,
>
> maybe a stupid question, but how can I redirect ALL request of my RAP
> application to the https port? I want the users to always use https.
>
> thanks,
> ~Ingo

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Redirect to https [message #901580 is a reply to message #901579] Mon, 13 August 2012 14:11 Go to previous messageGo to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Thanks Ivan,

I already knew this FAQ. What I try to do is to always redirect my users to https, so the http connection should automatically redirect to https and no http is possible.
Something like http://serverfault.com/questions/367660/how-to-have-jetty-redirect-http-to-https.
But I'm missing the place where I can configure the embedded jetty to do that. (So maybe it is a general RAP<->Jetty question)
The RAP help states it is not possible to provide a servlet.xml

~Ingo
Re: Redirect to https [message #901587 is a reply to message #901580] Mon, 13 August 2012 14:34 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Ingo,
Did you try to customize the embedded Jetty trough JettyCustomizer [1].
An example how to customize the Jetty can be found here [2]. I don't
know if it's possible to achieve what you want with the
JettyCustomizer#customizeHttpConnector, but you could try.
[1]
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fequinox%2Fhttp%2Fjetty%2FJettyCustomizer.html
[2]
http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/bundles/org.eclipse.rap.jettycustomizer
Best,
Ivan

On 8/13/2012 5:11 PM, Ingo Meyer wrote:
> Thanks Ivan,
>
> I already knew this FAQ. What I try to do is to always redirect my
> users to https, so the http connection should automatically redirect
> to https and no http is possible.
> Something like
> http://serverfault.com/questions/367660/how-to-have-jetty-redirect-http-to-https.
> But I'm missing the place where I can configure the embedded jetty to
> do that. (So maybe it is a general RAP<->Jetty question)
> The RAP help states it is not possible to provide a servlet.xml
> ~Ingo

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Redirect to https [message #901631 is a reply to message #901580] Mon, 13 August 2012 17:50 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Ingo,

this is more of a general server-side Equinox question. You may ask the
Equinox forum if you can't find an answer here.

Regards
Rüdiger

On 13.08.2012 16:11, Ingo Meyer wrote:
> Thanks Ivan,
>
> I already knew this FAQ. What I try to do is to always redirect my users
> to https, so the http connection should automatically redirect to https
> and no http is possible.
> Something like
> http://serverfault.com/questions/367660/how-to-have-jetty-redirect-http-to-https.
>
> But I'm missing the place where I can configure the embedded jetty to do
> that. (So maybe it is a general RAP<->Jetty question)
> The RAP help states it is not possible to provide a servlet.xml
> ~Ingo
Previous Topic:RWT Dev Setup
Next Topic:how to add doubleClick event listener to the image in the cell of the tableviewer?
Goto Forum:
  


Current Time: Fri Apr 26 01:35:31 GMT 2024

Powered by FUDForum. Page generated in 0.03578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top