You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Abid Ali Teepo <ab...@mogul.no> on 2003/06/30 16:58:48 UTC
Connector will not redirect to HTTPS
Hello
Somehow tomcat will not redirect requests to pages under a security constraint to https.
Instead i get an "HTTP 500 Internal Server Error"
In my server.xml the two connectors look like this :
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" useURIValidationHack="false" disableUploadTimeout="true" />
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="100" debug="0" scheme="https" secure="true" useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" clientAuth="false" protocol="TLS" />
</Connector>
And my security constraint looks like this in the web.xml file :
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Zone</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>INTEGRAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
And even though i get the HTTP 500 error the server will not redirect to my error
page that i have define like this :
<error-page>
<error-code>500</error-code>
<location>/action_error.jsp</location>
</error-page>
Please help
regards
Abid
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
File Access..
Posted by MartÃn Mauri <mm...@profesi.com.ar>.
Hi everybody,
I don't know if this exists in any manual, if it does, please tell me
where...
The thing's that I'd like to access files inside a context under webapps
with my jsp file but I'm getting nullPointerException, I'm sure the problem
is that I don't know where Tomcat points when it opens files...which's the
default path that tomcat uses?
thanks.
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org