tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: How to redirect http request to a secure SSL site?
Date Thu, 13 Nov 2003 09:53:15 GMT
On 11/12/2003 08:37 PM Raghava Rao wrote:
> Hi,
> I have jakarta-4.1.24 installed.
> 
> I have enabled both HTTP, running on port 80 and
> HTTPS, running on 443 on my tomcat server.
> 
> So, my HTTP site can be reached at
> http://localhost/index.jsp and my secure site can be
> reached at https://localhost/index.jsp 
> 
> I need help in:
> 1. When a user browses to http://localhost/index.jsp,
> how can he/she be redirected to
> https://localhost/index.jsp automatically?
> 
> 2. What are the conf\server.xml or conf\web.xml
> changes that need to be done to achieve the same?
> 
> 3. Once it's redirected to https, it should continue
> the entire session in https.
> 
> 4. If there is a webpage like
> https://localhost/member/user.jsp he/she should not be
> able to browse to the same using
> http://localhost/member/user.jsp 
> 
> Please direct me to any URL's where I can also read
> about the same.

Hi Raghava,
check the servlet specification from Sun. This is all documented there. 
It is configured in the web.xml, and you need to read up on 
security-constraints and user-data-constraints.


Adam
-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


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


Mime
View raw message