You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Donie Kelly <do...@tecnomen.ie> on 2002/06/12 17:35:47 UTC
Tomcat not redirecting request from HTTP to HTTPS
Hi all
Here is my server.xml and web.xml. When I request the page at /info I
expected the page to requested over SSL but it returns HTTP 500 Internal
server error
Why is this?
Web.xml
<servlet>
<servlet-name>info</servlet-name>
<jsp-file>/onm/index.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>info</servlet-name>
<url-pattern>/info</url-pattern>
</servlet-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>secure</web-resource-name>
<url-pattern>/info</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
server.xml
<Service name="Tomcat-Standalone">
<!-- Define an SSL HTTP/1.1 Connector on port 443 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="443" 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="c:\tomcat4.0\.keystore"
keystorePass="changit"
/>
</Connector>
<!-- Define a non-SSL HTTP/1.1 Connector on port 80 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="80" minProcessors="5" maxProcessors="75"
enableLookups="false"
redirectPort="443" acceptCount="10" debug="0"
connectionTimeout="60000"
allowChunking="false"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt" timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="false">
<Context path=""
docBase="c:\mmsdev\dev\mms\webapps\mms"></Context>
<Context path="/images"
docBase="c:\mmsdev\dev\mms\webapps\mms\onm\images"></Context>
<Context path="/tp"
docBase="c:\mmsdev\dev\mms\webapps\tp"></Context>
</Host>
</Engine>
</Service>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>