This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hello, I would like to forward any requests being handled by .jsp's to be redirected through SSL. The SSL Connector working successfully. Do I need to change the server.xml file to handle the redirect or is there a place in the web.xml I should be utilizing? Any suggestions are appreciated. Thanks Suzanne
Hi, You should add a redirect statement to your http connector so that directs all https calls to your ssl connector. The following is a connector in the server.xml file that redirects to port 443 (standard ssl port) for each https call. <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="80" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="443" acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false" /> Hope this helps, Sam P.
Joined: May 22, 2001
Sam, I have the redirect specification in the connector. What I would like to do is add a rule indicating any .jsp being handled by tomcat is redirected through https (even if it is not requested via the https protocol). Thank you, Suzanne