Come join our live training webinar every other Wednesday at 11am PST and hear LogicMonitor experts explain best practices and answer common questions. We understand these are uncertain times, and we are here to help!
Deny from all
Allow from localhost 10.0.0.12
Substitute 10.0.0.12 for the IP address of the device where the collector is installed.
Apache will need a graceful restart after the config file has been changed.
You can test that Apache is set up correctly by attempting to load the server status page from the collector.
telnet 10.0.0.100 80
GET /server-status HTTP/1.0
One point to note is that you should not be getting the results of /server-status from a redirect, but must get it directly from the queried server. (LogicMonitor will not follow such redirects, as we want to be sure we are monitoring Apache response on the server being initially queried, not a possibly different server that is redirected to.)
If you are using rewrite rules, one way to ensure that the /server-status page is not being redirected is to insert the following immediately after enabling the rewrite engine:
# don't rewrite /server-status
RewriteRule .*server-status.* - [L]