Apache Server Status Detailed

Source: Internet
Author: User

Apache logs are cumbersome to monitor Apache running status by analyzing logs or viewing server processes. However, in the Apache 1.3.2 and later versions of the functional module to view the Apache Server-status, so it is convenient to view some of Apache's corresponding state information.

First, open Apache Server Status

If your Apache profile httpd.conf or extra/httpd-info.conf has loadmodule status_module modules/mod_ status.so says your Apache has loaded this module, or when you compile it with –enable-module=so It also indicates that the server supports Server-status.

If Apache does not load this module, if it is a Linux server, you will have to recompile Apache, plus –enable-module=so parameters; If you are a Windows system, you do not need any compilation, just say the LoadModule Status_module modules/mod_status.so This sentence plus, if the front with a #, open, you need to remove the #.

This column more highlights: http://www.bianceng.cn/Servers/web/

Two. Configure Apache Server Status

# vi/usr/local/apache2/conf/httpd.conf

Last line add:

------------

Extendedstatus on

<location/server-status>

SetHandler Server-status

Order Allow,deny

Allow from all

</location>

------------

Restart Service:

#/usr/local/apache2/bin/apachectl Restart

Three. Access Status page

Add it back here? refresh=5 indicates that the page is refreshed every 5 seconds, and can be added without

Browser Access http://192.168.7.196/server-status?refresh=5

As shown in figure:

This article comes from "All the Way North" blog, please be sure to keep this source http://showerlee.blog.51cto.com/2047005/1201763

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.