我们正在将apache作为代理服务器运行,并且在apache之后有tomcat。我们正在使用server_status模块,但是当我们尝试访问server_status时,https://host.com/server-status
它重定向到tomcat并显示404错误。我对此很陌生,尝试过apache文档,但无法找出解决方案。Fyi。我们启用了ssl
当前的ssl.conf设置:
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>
建议更改后
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/
编辑2:
需要对httpd.conf进行更改,并且我 ProxyPass /server-status !
在Proxy模块配置的指令下添加了,它可以工作。