ReDirect Tomcat 9 and IIS with direct URL

  ajp, iis, redirect, tomcat, windows

The setup is on a windows server 2019:
Tomcat 9.0.38, test application is up an running
Part of my server.xml config file:

    <Connector
    address="x.x.x.x"
    port="8000" 
    URIEncoding="UTF-8" 
    protocol="org.apache.coyote.http11.Http11NioProtocol" 
    connectionTimeout="20000" 
    redirectPort="8443" 
    compression="on" 
    compressionMinSize="1024" 
    noCompressionUserAgents="gozilla, traviata" 
    compressibleMimeType="text/html,text/xml,text/css,text/plain,text/javascript, image/jpeg"
    server="Tomcat"/>

    <Connector
    protocol="AJP/1.3" 
    address="x.x.x.x" 
    port="8009" 
    redirectPort="8443" 
    tomcatAuthentication="false" 
    secretRequired="false" 
    packetSize="65536" />

IIS is als working fine

Add Virtual Directory...
-> Jakarta

Connector is also configured (isapi_redirect.dll)

    worker.list=local 
    worker.local.type=ajp13
    worker.local.host=x.x.x.x
    worker.local.port=8009
    worker.local.max_packet_size=65536

    /test/*=local
    /test=local

Now I am able to access the application via the "url/test" but i want to access the application only by the "url".
How can i do this?

Source: Windows Questions

LEAVE A COMMENT