Re: specify directory for specific port in the same host

Jan Heise <[email protected]> Tue, 09 May 2006 09:52:11 +0200
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>
Or perhaps

http://www.caucho.com/resin-3.0/security/authorization.xtp#transport-guarantee

is helpful.


Mattias Jiderhamn wrote:
> You should be able to create a servlet filter that blocks access for all 
> request without SSL.
> 
> Something like:
> 
>   if(! request.isSecure())
>     
> ((HttpServletResponse)response).sendError(HttpServletResponse.SC_FORBIDDEN); 
> // Block request
>   else
>     chain.doFilter(request,response); // Allow request
> 
> Then apply that filter on everything but the servlet that allows regular 
> http.
> 
> 
> At 2006-05-09 04:59, you wrote:
> 
>> Hi all,
>>
>>         Is it possible to config specific port for specific servlet 
>> running?
>> I wanna open https for general purpose, and open port 80 for some
>> running servlet, disable other resource access.For all resources are 
>> in the
>> same project, I have to turn on only some services for specific port.
>>
>> Regards,
>> youchun
> 
> 
>