I have IHS 8.5.5.3 with WebSphere 8.5.5.3 installed on a Win Server 2012 VM as part of an installation of the IBM Maximo 7.6 system. I am trying to enable mod_status on IHS to enable me to collect metrics with Datadog from Apache / IHS. The Maximo system is configured on port 9080, I am trying to setup mod_status on port 80 to be available from http://localhost/server-status or similar.
The existing configuration of IHS appears to deny all by default all routes unless configured otherwise.
I added the following to httpd.conf on the server within the IHS installation:
LoadModule status_module modules/mod_status.so
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
order allow, deny
#order deny,allow
#deny from all
#allow from localhost
allow from all
ExtendedStatus On
</Location>
</IfModule>
When I browse to http://localhost/server-status from the server I get "Not found - HTTP Error 404. The requested resource is not found." Is there something I've missed in the config or do I also need to enable a WebGroup / Virtual Host in WebSphere or something elsewhere?
I realise generally speaking it's probably not best-practise to allow anyone to view server-status from anywhere but it's a crash & burn server that I only I have access to. Thanks.
The text of the error message means the WAS Plugin forwarded this request to WAS. This will happen if you have applications mapped to context root "/", nothing can be served locally by IHS as the WAS Plugin will take control.
You can append the following to httpd.conf to force this URL to be ignored by the WAS Plug-in:
Notes:
ExtendedStatus On
inside of<Location>
looks like it would cause a startup problem. Presumably something you only injected while debugging. It mut be global (outside of any Directory/Location/VirtualHost like section)