Iam trying to configure IIS using httpplatformhandler add on to connect Tomcat server where my Java application deployed by referring below link. https://learn.microsoft.com/en-us/previous-versions/azure/windows-server-azure-pack/mt125371(v=technet.10)
However, I am not succeeded to connect tomcat. below is my web.config file
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="AdminSuperTrustedSite" overrideMode="Allow">
<system.webServer>
<handlers>
<add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="C:\tools\apache-tomcat-10.0.12\bin\startup.bat" arguments="start" stdoutLogEnabled="true" stdoutLogFile="\\?C:\tools\log.txt">
<environmentVariables>
<environmentVariable name="JRE_HOME" value="%programfiles%\java\jdk1.8.0_202" />
<environmentVariable name="CATALINA_HOME" value="C:\tools\apache-tomcat-10.0.12" />
<environmentVariable name="CATALINA_OPTS" value="-Dport.http=%HTTP_PLATFORM_PORT%" />
<environmentVariable name="JAVA_OPTS" value="-Djava.net.preferIPv4Stack=true" />
</environmentVariables>
</httpPlatform>
</system.webServer>
</location>
</system.webServer>
</configuration>
And I updated below attribute in Tomcat Server.xml
<Server port="-1" shutdown="SHUTDOWN">
<Connector port="${port.http}" protocol="HTTP/1.1">
I am always getting below error
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
I enabled directory browsing option and then it is trying to list out directory instead showing application.
Can anybody help me to find out what could be the issue ?
Thank you.