我正在尝试让apaches服务器状态与Plesk 11一起工作。但是运行sudo /usr/sbin/apache2ctl fullstatus会导致以下结果:
Forbidden
You don't have permission to access /server-status on this server.
__________________________________________________________________
Apache Server at localhost Port 80
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars如何启用服务器状态?
到目前为止,我一直试图插入
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from localhost
</Location>进入httpd.conf,但我不确定它是否是活动的。我还尝试将它添加到/var/www/vhost/somedomain/conf/vhost.conf中,但我不知道必须将它添加到哪个域,因为fullstatus似乎直接查询localhost。我想我有点困惑于在Plesk中使用vhost配置。
发布于 2014-10-18 15:17:02
您很可能启用了nginx。
这意味着apache不是在监听端口80,而是在端口7080 (我猜您没有更改默认端口)。
您可以安装lynx并访问正确的端口:
aptitude install lynx
lynx http://localhost:7080/server-statushttps://serverfault.com/questions/550817
复制相似问题