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