我们运行 apache 作为代理服务器,并且在 apache 后面有 tomcat。我们正在使用 server_status 模块,但是当我们尝试访问 server_status 时,https://host.com/server-status它会重定向到 tomcat,并收到 404 错误。我对此很陌生,尝试浏览 apache 文档但无法找出解决方案。仅供参考。我们已启用 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>
Run Code Online (Sandbox Code Playgroud)
建议更改后
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/ …Run Code Online (Sandbox Code Playgroud)