Troubleshooting REST Endpoints Mapping in Iis with BonCode Tomcat comnector

Problem:
My Lucee REST API (/rest/scholarrest/health) worked fine when accessed directly on Tomcat (e.g., :8888), but returned a 404 Not Found when accessed through IIS + BonCode AJP connector, even though the /rest/ directory listing worked.

After debugging, I found that BonCode was not correctly splitting the path — it sent the full URL as path-info (e.g., /rest/scholarrest/health) instead of just /health, causing Lucee’s REST engine to fail routing.

Solution:
I bypassed BonCode AJP entirely and switched to a reverse proxy using IIS URL Rewrite + Application Request Routing (ARR) , forwarding requests directly to Tomcat’s HTTP port (e.g., 8888 or 8443). This preserves the URL structure accurately.