¿Alguien puede decirme cómo se enruta la solicitud en la siguiente configuración de IIS-Tomcat isapiredirect (2.0)?

Tengo la siguiente configuración:

1. Tomcat server.xml

<Server port="8005" shutdown="SHUTDOWN">

<Service name="Catalina">

<Connector port="8080"
maxHttpHeaderSize="8192" maxThreads="150" 
minSpareThreads="25" maxSpareThreads="75" 
useBodyEncodingForURI="true" enableLookups="false" 
redirectPort="8443" acceptCount="100" 
connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />

<Connector port="8009" 
enableLookups="false" redirectPort="8443" 
protocol="AJP/1.3" />

2. worker.properties

[channel.socket:localhost:8009]
info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol
tomcatId=localhost:8009

3. IIS

Has a website with port 80 that have isapiredirect filter enabled.

My initial guest is "port HTTP80->HTTP8009->HTTPS8443" "port HTTP8080->HTTP8443"

preguntado el 01 de febrero de 12 a las 04:02

1 Respuestas

Your AJP Connector (8009) is not HTTP, it uses the AJP protocol

If a clients connects via IIS, the flow will be

IIS Http80 -> Tomcat AJP 8009 or via Https IIS Https443 -> Tomcat AJP 8009

As far as I know the AJP13 protocol does not support encryption of the data involed in IIS to Tomcat communications, but you can set a parameter to let tomcat know that the front webserver is HTTPS so that request.isSecure() returns true.

Your connectors on pour 8080/8443 on tomcat will only be used if you connect directly to tomcat.

Respondido 01 Feb 12, 09:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.