http-basic-auth 背后的 monit 和 apache 站点
我有一个受 http-basic-auth 保护的 Web 服务器。 我已通读 monit 文档,似乎没有明确的方法来传递凭据以测试服务器上的测试页面是否正确返回。
有什么想法吗?
谢谢!
(请不要将此与 monit 自己的用于在网页中显示 monit 状态的 httpd 混淆)
PS 这是 monit 4.8.1 —— Ubuntu Hardy 8.04 附带的版本
I have a web server which is protected behind http-basic-auth. I've read through the monit docs and it doesn't seem like there's a clear way to pass credentials in order to test that the test page on the server is being returned correctly.
Any thoughts?
Thanks!
(Please don't confuse this with monit's own httpd for showing monit status in a web page)
PS this is monit 4.8.1 -- that which comes with Ubuntu Hardy 8.04
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎可以在 URL 中包含凭据,您尝试过吗?:(
来自 http://mmonit.com/monit/documentation/monit.html#connection_testing)
It seems to be possible to include the credentials in the URL, have you tried this?:
(from http://mmonit.com/monit/documentation/monit.html#connection_testing )
如果您只想检查您的 Web 服务器是否正在侦听端口 80(并且您不关心它返回什么页面或数据),请尝试此操作:
Try this if you just want to check that your web server is listening on port 80 (and you don't care what page or data it returns):