You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Donny R Rota <dr...@us.ibm.com> on 2005/05/04 22:42:22 UTC
How do I redirect all tomcat ports to use SSL?
This weeks puzzler 8^)
I want all my Tomcat requests to go through SSL.
I setup tomcat, and got port 80 and port 443 (SSL) working.
But I cannot redirect port 80 to 443. I keep getting refused:
Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
I know you can do it the other way around 8443 -> 80.
I'm just running standalone Tomcat, no Apache.
advTHANKSance!
...Don...
------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
drrota@us.ibm.com
Log the Content-type
Posted by Juan Manuel Soler Rincón <ju...@uniandes.edu.co>.
Hi
I need to log the content-type of the request in a tomcat web-server, can
someone help me with that???
thx
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How do I redirect all tomcat ports to use SSL?
Posted by Fabian Pena <fp...@adinet.com.uy>.
This is an example
<security-constraint>
<web-resource-collection>
<web-resource-name>securePages</web-resource-name>
<url-pattern>/index.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Fabian
http://www.manentiasoftware.com
Donny R Rota wrote:
> Thanks, I use security-constraints now, and I've been looking for this
> answer for weeks.
> I've not found that option available. Can you send me an URL to this?
> In the mean time, I'm going to see if I can find that option in my other
> sources.
> thanks!
> ...Don...
>
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104
> Tel: 781 676 2655, Fax: 781 676 7645
> drrota@us.ibm.com
>
>
>
> Fabian Pena <fp...@adinet.com.uy>
> 05/04/2005 04:51 PM
> Please respond to
> "Tomcat Users List"
>
>
> To
> Tomcat Users List <to...@jakarta.apache.org>
> cc
>
> Subject
> Re: How do I redirect all tomcat ports to use SSL?
>
>
>
>
>
>
> In a web application, you can edit your web.xml file and add a
> <security-constraint> to redirect all application requests to SSL.
>
> I Hope this help
>
> Fabian
>
> Donny R Rota wrote:
>
>>This weeks puzzler 8^)
>>
>>I want all my Tomcat requests to go through SSL.
>>I setup tomcat, and got port 80 and port 443 (SSL) working.
>>But I cannot redirect port 80 to 443. I keep getting refused:
>>
>>Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
>>I know you can do it the other way around 8443 -> 80.
>>I'm just running standalone Tomcat, no Apache.
>>
>>
>>advTHANKSance!
>>...Don...
>>
>>------------------------------------------------------------------
>>Don Rota, CTG Operations
>>Rational Software, IBM Software Group
>>20 Maguire Road, Lexington, MA 02421-3104
>>Tel: 781 676 2655, Fax: 781 676 7645
>>drrota@us.ibm.com
>>
>>
>>------------------------------------------------------------------------
>>
>>No virus found in this incoming message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How do I redirect all tomcat ports to use SSL?
Posted by Hassan Schroeder <ha...@webtuitive.com>.
Donny R Rota wrote:
> Thanks, I use security-constraints now, and I've been looking for this
> answer for weeks.
> I've not found that option available. Can you send me an URL to this?
> In the mean time, I'm going to see if I can find that option in my other
> sources.
Uh, your "other sources" would presumably include a copy of the
Servlet spec? :-) (That'd be SRV12.8 in the 2.4 spec, BTW)
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How do I redirect all tomcat ports to use SSL?
Posted by Donny R Rota <dr...@us.ibm.com>.
Thanks, I use security-constraints now, and I've been looking for this
answer for weeks.
I've not found that option available. Can you send me an URL to this?
In the mean time, I'm going to see if I can find that option in my other
sources.
thanks!
...Don...
------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
drrota@us.ibm.com
Fabian Pena <fp...@adinet.com.uy>
05/04/2005 04:51 PM
Please respond to
"Tomcat Users List"
To
Tomcat Users List <to...@jakarta.apache.org>
cc
Subject
Re: How do I redirect all tomcat ports to use SSL?
In a web application, you can edit your web.xml file and add a
<security-constraint> to redirect all application requests to SSL.
I Hope this help
Fabian
Donny R Rota wrote:
>
> This weeks puzzler 8^)
>
> I want all my Tomcat requests to go through SSL.
> I setup tomcat, and got port 80 and port 443 (SSL) working.
> But I cannot redirect port 80 to 443. I keep getting refused:
>
> Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
> I know you can do it the other way around 8443 -> 80.
> I'm just running standalone Tomcat, no Apache.
>
>
> advTHANKSance!
> ...Don...
>
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104
> Tel: 781 676 2655, Fax: 781 676 7645
> drrota@us.ibm.com
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How do I redirect all tomcat ports to use SSL?
Posted by Fabian Pena <fp...@adinet.com.uy>.
In a web application, you can edit your web.xml file and add a
<security-constraint> to redirect all application requests to SSL.
I Hope this help
Fabian
Donny R Rota wrote:
>
> This weeks puzzler 8^)
>
> I want all my Tomcat requests to go through SSL.
> I setup tomcat, and got port 80 and port 443 (SSL) working.
> But I cannot redirect port 80 to 443. I keep getting refused:
>
> Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
> I know you can do it the other way around 8443 -> 80.
> I'm just running standalone Tomcat, no Apache.
>
>
> advTHANKSance!
> ...Don...
>
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104
> Tel: 781 676 2655, Fax: 781 676 7645
> drrota@us.ibm.com
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org