tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Sabroff <mike.sabr...@cygnusb2b.com>
Subject Re: Basic modjk + ssl + tomcat question
Date Wed, 08 Feb 2006 14:25:17 GMT
Because ssl only works through https://     You should really split that 
up though

Bill Barker wrote:
> "Ed" <6b27b7t174f180t@jetable.org> wrote in message 
> news:43E91F6E.5000701@jetable.org...
>   
>> Hi!
>>
>> (modjk newbie)
>> I'm using a modjk+SSL config (I did not make myself) that is mapped to a 
>> single worker.
>> Behind, a single AJP connector recieves everything.
>> The question is : how do I know from my webapp that a request is using SSL 
>> or not.
>>
>>     
>
> Httpd/IIS/SunOne sends this information to Tomcat as part of the AJP/1.3 
> protocol.  As a result, you can just use:
>   if(request.isSecure()) {
>       // SSL processing
>   } else {
>      // non-SSL processing
>   }
>
>
>   
>> I saw the "secure" configuration attribute to the connector, and this 
>> leads me to think I actually need 2 AJP connectors (one for each case) and 
>> thus 2 workers. Am I wrong? *
>> What's the right way of discriminating SSL and non-SSL requests within my 
>> webapp ?  Do I need to change my current Apache/modjk config?
>>
>>     
>
> Nope, the "secure" configuration attribute is ignored by the AJP/1.3 
> connector (which causes a few complaints ;-).
>
>   
>> Any advice welcome :)
>>
>> cheers 
>>     
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   

-- 
Mike Sabroff
Web Services
Developer
mike.sabroff@cygnusb2b.com
920-568-8379


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message