tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 李征 <ustc970...@yahoo.com.cn>
Subject 回复: 回复: about Connector's attribute redirectPort
Date Tue, 16 Sep 2008 03:47:28 GMT

I use apache as the web server and tomcat as the jsp container, and use mod_jk to make them
work together.
when a request comes, apache will send it to tomcat via ajp:8009, 
and if it is a secure request, i think tomcat will redirect it to port 8443

if Tomcat is not listening on the port 8443, i just don't understand how redirect could happen?



----- 原始邮件 ----
发件人: "Caldarale, Charles R" <Chuck.Caldarale@unisys.com>
收件人: Tomcat Users List <users@tomcat.apache.org>
已发送: 2008/9/13(周六), 上午1:36:14
主题: RE: 回复: about Connector's attribute redirectPort

> From: 李征 [mailto:ustc9703er@yahoo.com.cn]
> Subject: 回复: about Connector's attribute redirectPort
>
> this is my setting for connector
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8009" minProcessors="5" maxProcessors="150"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="10" debug="0" connectionTimeout="0"
>                useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

That's the <Connector> for port 8009; if you want Tomcat to listen for HTTPS on 8443,
you need another <Connector> for that port.  The one for 8443 is commented out in server.xml
by default.

- Chuck

> From: 李征 [mailto:ustc9703er@yahoo.com.cn]
> Subject: 回复: about Connector's attribute redirectPort
>
> Mark
> 
> thanks a lot for ur reply, 
> 
> this is my setting for connector
> 
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8009" minProcessors="5" maxProcessors="150"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="10" debug="0" connectionTimeout="0"
>                useURIValidationHack="false"
>                protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> 
> and i can't get anything from 
> netstat -apn | grep 8443


发件人: Mark Thomas <markt@apache.org>
收件人: Tomcat Users List <users@tomcat.apache.org>
已发送: 2008/9/12(周五), 下午4:21:38
主题: Re: about Connector's attribute redirectPort

李征 wrote:
> at tomcat official site, 
> 
> http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html
> redirectPort is described as below
> 
>
If this Connector is supporting non-SSL requests, and a request is
received for which a matching <security-constraint> requires SSL
transport, Catalina will automatically redirect the request to the port
number specified here. The default value is 443.
> 
> 
> but i still don't understand what redirectPort is used for.
Which part of the description don't you understand?

> and actually, tomcat doesn't listen on the port specified by redirectPort,
> so how does the redirect work?
If Tomcat isn't listening on that port with a secure connector it won't work.

Mark



      ___________________________________________________________ 
 雅虎邮箱,您的终生邮箱! 
http://cn.mail.yahoo.com/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message