Hi, please help me)
When I try to display debug info on page http://example.com?sd=1
I receive many 404 errors from links like: http://example.com/lucee/res/js/util.min.js.cfm
What I’m doing wrong?
Configuration File: E:\example\WEB-INF\lucee\lucee-web.xml.cfm
Configuration File: C:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee\lucee-web.xml.cfm
OS: Windows Server 2012 R2 (6.3) 64bit
Java Version: 1.8.0_144 (Oracle Corporation) 64bit
Tomcat Version: 8.5.33
Lucee Version: 220.127.116.11
this is really difficult to diagnose, because 404 page can have many reasons. The files you are trying to retrieve are from the lucee context, and for security reasons they probably won’t be loaded. They will be blocked and only shown when you access through port 8888 (bypassing IIS).
WIth the assumption that the paths are configured correctly:
It would be helpful to understand whether the error is thrown by IIS or by Tomcat.
You can turn off HTTP header codes forwarding on BonCode
If you see Tomcat error then it is Tomcat complaining, you need to fix it there. If you continue seing IIS errors, you have IIS permissions issues. Fix it in IIS.
IIS errors is steel present after I set
<EnableHTTPStatusCodes>false</EnableHTTPStatusCodes>. What permission should I set?
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information:
||IIS Web Core
Most likely you have a file/directory requirement. IIS will check whether file or directory exsits before forwarding the request to Tomcat.
Since anything under path
lucee is virtual and controlled by lucee such directories and files are not present for IIS to find, thus it will throw 404.
You have a few options:
a) Create empty files and directories mimimicing files that you need to see in debug. IIS will believe these files exist, and forward your request to Tomcat and Tomcat will promptly ignore them and use its mapped files.
b) You can add a wildcard handler for path
/lucee and disable request restrictions:
I tried first option,
Now, return from this xxx.css.cfc and js files is empty. Tomcat doesn’t ignore created files.
Second option fixed the problem, but at first empty files that was created should be removed.
Thank you Bilal.