You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by gautam <ga...@applabs.net> on 2002/10/07 16:02:58 UTC
Tomcat 4.0.5/JDK1.4/Solaris + Redirect to HTTPS not working
Hello,
I am facing a problem with SSL in Tomcat 4.0.5 on Solaris (JDK 1.4). The
same code works fine on Windows 2000 (TC 4.0.5, JDK 1.4). When I access the
app through HTTP, it should redirect me to HTTPS. This does not happen and I
get a "Page cannot be displayed". Direct access through HTTPS works fine.
What is wrong ?
server.xml snippet :
-------------------
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false" protocol="TLS"
keystoreFile="./keystore"/>
</Connector>
web.xml snippet :
----------------
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Area - Struts Actions</web-resource-name>
<url-pattern>*.ma</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>Secure Area - JSPs</web-resource-name>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/logon.jsp</form-login-page>
<form-error-page>/fail_logon.jsp</form-error-page>
</form-login-config>
</login-config>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>