might be explained with an example:
Any ideas on how to get this to work?
The reason why I'm asking is that our AEM "architecture" is using 3rd-party platform called "OpenCloud". This platform provides its own health checker servlet (http://localhost:4502/system/health and http://localhost:4503/system/health) and I want to access this path.
thank you.
EDIT:
This is the content of my /filters section
# Deny everything
/0001 { /type "deny" /glob "*" }
# Enable Health Check Servlet
/0006 { /type "allow" /method "GET" /url "/system/health*" }
#I have other lines in the filters section but I have commented them
my dispatcher config
<IfModule dispatcher_module>
DispatcherConfig "/etc/httpd/conf.modules.d/dispatcher.farms.any"
DispatcherLog /var/log/httpd/dispatcher.log
DispatcherLogLevel warn
DispatcherNoServerHeader off
DispatcherDeclineRoot off
DispatcherUseProcessedURL 1
DispatcherPassError 0
</IfModule>
Solved! Go to Solution.
Views
Replies
Total Likes
@jayv25585659 My bad; I meant to send the LogLevel with `Debug`. If you want, you can go with `Trace2` to get more detailed logging on why it is blocked. Tail this log file `tail -f /var/log/httpd/dispatcher.log` and check what is happening. Here are a few things you can focus on to debug:
@jayv25585659 Please share a snippet from dispatcher logs to see what's the error while accessing the URL at the dispatcher level
I edited my original reply.
I tried the following:
<html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> </body></html>
There must be another rule in dispatcher filters which might be blocking it. Change the dispatcher log level to debug or trace and restart the dispatcher to notice which rule is blocking it.
Define DISP_LOG_LEVELWarnDebug
Instead of allowing everything -> /0001 { /type "allow" /glob "*" } set allow rule with specific path
# /health_check { /type "allow" /url "/system/health" }
@jayv25585659 My bad; I meant to send the LogLevel with `Debug`. If you want, you can go with `Trace2` to get more detailed logging on why it is blocked. Tail this log file `tail -f /var/log/httpd/dispatcher.log` and check what is happening. Here are a few things you can focus on to debug:
@jayv25585659 the log should be set to debug. Make a request and capture the error and share it here.