IIS connects to Web/Application Server Tomcat 9
IIS (Internet Information Server 10) on Windows 2016 server
Plesk dropped support for connecting Tomcat from IIS. It is disgraceful. I was so disappointed to learn that. However, another exciting opportunity opened up as I learnt URL rewrite is powerful enough to take over the job and even with more elegant simplicity.So I gave it a try. Even without knowing many of its features, I was able to set it up that one of the sites mysub.yourdomain.com (not real domain, just as an example and I tried a few sites in my server) is pointing to a tomcat localhost at 8080. It sounds good enough. Right?
However, after setting the original site mysub.yourdomain.com for using https. All browsers in desktop platform and Android platform seemed to work. But browser in iOS version failed to open the https. After a few digging, some said in forum that it was a known bug
https://stackoverflow.com/questions/49141004/ios-10-3-3-not-working-with-ssl-and-iis-rewrite-ruleorum. and the following will solve the problem
https://support.microsoft.com/en-us/help/4093120/windows-10-update-kb4093120
So I patched the server. But unfortunately, it didn’t work. But the others hint by looking into the log that it might be the problem of http/2 (HTTP 2 version problem, which many optimizations are written for making https faster). I began to muse on the possibility of disabling http2 as the workaround.
I followed the steps below to turn off the http2 in IIS. Then everything worked.
-
Start → regedit
-
Navigate to the folder/path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
-
Under the Parameters folder, right-click the white-space, add 2 new DWORD (32-bit) values:
-
EnableHttp2Tls
-
EnableHttp2Cleartext
-
Ensure both new values have been set to 0(disabled) by right-clicking the value and clicking "Modify..."
-
Restart the OS.
Everything works now. If you have any update on the other “normal” fix, please be generous to leave a comment.
留言
張貼留言