You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 李征 <us...@yahoo.com.cn> on 2008/09/12 10:56:35 UTC

回复: 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 <ma...@apache.org>
收件人: Tomcat Users List <us...@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



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      ___________________________________________________________ 
 雅虎邮箱,您的终生邮箱! 
http://cn.mail.yahoo.com/

RE: 回复: about Connector's attribute redirectPort

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> 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


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.