使用Plesk 11启用服务器状态

我试图获得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/vhosts/somedomain/conf/vhost.conf,但我不知道哪个域我必须添加到,因为fullstatus似乎直接查询本地主机。 我想我对使用Plesk中的vhostconfiguration有点困惑。

你最有可能已经启用了nginx。

这意味着Apache不在端口80监听,但在端口7080(我猜你没有更改默认端口)。

您可以安装l and并访问正确的端口:

 aptitude install lynx lynx http://localhost:7080/server-status