Enable Apache2 mod_status

来源:互联网 发布:李蛋女朋友淘宝店 编辑:程序博客网 时间:2024/06/06 13:57

The steps to enable the status mod and info mod of apache2 on ubuntu:

1. a2enmod status

    a2enmod info

2. cd /etc/apache2/mods-enabled/

    vi status.conf to add a line

 

3. /etc/init.d/apache2 reload

reload the configuration files.

 

4. If rewrite mod is enabled and rewrite the root path, we should add a exception for the /server-status and /server-info:

   RewriteCond %{REQUEST_URI} ^/(server-info|server-status)
   RewriteRule . - [L]

 

the contents in /path-to-the-website-root/.htaccess should be similar to

原创粉丝点击