You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Hansjörg Meuschel <hj...@gmx.de> on 2006/05/19 12:08:22 UTC

strange https problem using tomcat5

Hi guys,
i have a problem with https on tomcat5: accessing https://localhost:8080 
works fine, using http://localhost:8080 prompts me a download of a 
crypted file ?!
Instead, I want to have some kind of redirection to https - how do you 
do this?
Thanks for answers,
regards Hans

Re: strange https problem using tomcat5

Posted by Hansjörg Meuschel <hj...@gmx.de>.
Thanks for your answers,
i now have two connectors, one for http (port 8080) and one for https 
(port 8081)!
Hans

Mirek B. wrote:

> Hansjörg Meuschel wrote:
>
>> Hi guys,
>> i have a problem with https on tomcat5: accessing 
>> http://localhost:8080 works fine, using http://localhost:8080 prompts 
>> me a download of a crypted file ?!
>> Instead, I want to have some kind of redirection to https - how do 
>> you do this?
>> Thanks for answers,
>> regards Hans
>>
>
> Hi
>
> In short: the server can't magically know if your browser is speaking 
> SSL or HTTP. You need to have two ports open, one for 'http' (i.e. 
> 8080) and one for 'https' (8181 or whatever), which the server will 
> decide on, if it's encrypted or not.
>
> Mirek
>
>


Re: strange https problem using tomcat5

Posted by "Mirek B." <wi...@gmail.com>.
Hansjörg Meuschel wrote:
> Hi guys,
> i have a problem with https on tomcat5: accessing http://localhost:8080 
> works fine, using http://localhost:8080 prompts me a download of a 
> crypted file ?!
> Instead, I want to have some kind of redirection to https - how do you 
> do this?
> Thanks for answers,
> regards Hans
> 

Hi

In short: the server can't magically know if your browser is speaking 
SSL or HTTP. You need to have two ports open, one for 'http' (i.e. 8080) 
and one for 'https' (8181 or whatever), which the server will decide on, 
if it's encrypted or not.

Mirek

RE: strange https problem using tomcat5

Posted by Julian Ray <ju...@yahoo.com>.
Hi Hans,

Take a look at the s:form tag in the sandsbox. This will allow you to
specify the port. 

-----Original Message-----
From: Hansjörg Meuschel [mailto:hjmeu@gmx.de] 
Sent: Friday, May 19, 2006 6:08 AM
To: MyFaces Discussion
Subject: strange https problem using tomcat5

Hi guys,
i have a problem with https on tomcat5: accessing https://localhost:8080
works fine, using http://localhost:8080 prompts me a download of a crypted
file ?!
Instead, I want to have some kind of redirection to https - how do you do
this?
Thanks for answers,
regards Hans