We are running apache as a proxy server and have tomcat behind apache. We are using server_status module but when we try to access server_status as in https://host.com/server-status
it redirects to tomcat and we get 404 error.
I am quite new to this, tried going through apache docs but unable to figure out the solution. Fyi.We have ssl enabled
Current ssl.conf settings:
ProxyRequests Off
ProxyPreserveHost On
<Proxy http://localhost:8081/*>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
ProxyPassReverse / http://myhost:8081/
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 10.90
</Location>
After suggested changes
ProxyRequests Off
ProxyPreserveHost On
<Proxy http://localhost:8081/*>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /server-status !
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
ProxyPassReverse / http://myhost:8081/
Edit 2:
Change was required to httpd.conf and I added the ProxyPass /server-status !
under the directive for proxy module configuration and it works.