我打开了apache的服务器状态模块,并打算只能从我自己的ip或通过连接到服务器本身的lynx文本浏览器进行浏览。 不幸的是,事实certificate,我能够从其他ips读取/服务器状态URL的细节,显然任何公共IP一般。
然而当我看到允许/拒绝堆栈时,对我来说似乎是正确的。 我试图首先拒绝,只允许从几个特定的位置第二。 我做错了什么? 这是我的httpd.conf
# Uncomment the following lines to enable mod_status support: # ExtendedStatus On # ServerTokens Prod # Already set in the conf.d/security #Don't reveal server apache or debian details. <Location /server-status> SetHandler server-status Order Deny,Allow Deny from all Allow from localhost, bitlucid.com, 184.106.129.190, 67.247.170.88, 72.230.178.92 </Location>
摆脱“允许从”行中的逗号,这些是不允许的,可能会导致此。