Re: Restlets in both https and http at the same time
I think you only have to ensure that connectors for both protocols are available, add the protocoll to your server, and everythink should work fine.best regards Stephan Von: "Xavier Méhaut" Gesendet: 30.08.2010 09:30:12An: discuss@restlet.tigris.orgBetreff: Restlets in both https and http at the same timeHello,I would like to know if it is possible to have at the same time both HTTPS and HTTP access to the same restlets?The use case is the following :my restlet server (not into a servlet container) must be access locally and remotely ; I would like locally to access it in HTTP, and remotely in HTTPS... regardsXavier Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02
RE: Restlets in both https and http at the same time
Hi Xavier, This is definitely possible, just declare two server connectors, one with the Protocol.HTTP value and the other with Protocol.HTTPS and the required configuration parameters. Of course, they’ll listen on separate ports (80 and 443 by default). Both connectors will route calls to the default virtual host, but you can define custom virtual hosts to restrict what requests are matched and what Restlets/resources to attach. Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com De : xavier.meh...@gmail.com [mailto:xavier.meh...@gmail.com] De la part de Xavier Méhaut Envoyé : lundi 30 août 2010 09:30 À : discuss@restlet.tigris.org Objet : Restlets in both https and http at the same time Hello, I would like to know if it is possible to have at the same time both HTTPS and HTTP access to the same restlets? The use case is the following : my restlet server (not into a servlet container) must be access locally and remotely ; I would like locally to access it in HTTP, and remotely in HTTPS... regards Xavier -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2653116
Restlets in both https and http at the same time
Hello, I would like to know if it is possible to have at the same time both HTTPS and HTTP access to the same restlets? The use case is the following : my restlet server (not into a servlet container) must be access locally and remotely ; I would like locally to access it in HTTP, and remotely in HTTPS... regards Xavier -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2652980
Re: HTTPS and HTTP?
Thanks Tal! I solved it your way i think. But without load balancer. I added HTTP server on port 80 and HTTPS on port 81 and the login resource checks the protocol like this: if(request.getProtocol() != Protocol.HTTPS) Hope that's right and make my app secure. Thank you again! -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/HTTPS-and-HTTP-tp4946235p4946625.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2592840
Re: HTTPS and HTTP?
A common solution I use is to have my loadbalancer (I like PerlBal) handles HTTPS divert HTTP and HTTPS to different ports, for example 80 for HTTP and 81 for HTTPS. You can run your Restlet component with two servers to answer both of these, and then test for which port requests are coming through to make decisions based on HTTP vs. HTTPS. -Tal On 04/22/2010 01:09 PM, gonzajg wrote: > Hi, > i'd like to know if there's a way to have on the same application running > HTTPS resources and HTTP. > My idea is to have a login resource via HTTPS where a session is returned if > user/password are ok and then check the session in other HTTP resources (so > the overload of HTTPS is saved) > > Thanks! > -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2592791
HTTPS and HTTP?
Hi, i'd like to know if there's a way to have on the same application running HTTPS resources and HTTP. My idea is to have a login resource via HTTPS where a session is returned if user/password are ok and then check the session in other HTTP resources (so the overload of HTTPS is saved) Thanks! -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/HTTPS-and-HTTP-tp4946235p4946235.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2592789