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 version of a feature module to view the Apache status Server-status, so it is convenient to view some of Apache's corresponding status information.

One. Open Apache Server Status

If your Apache configuration file httpd.conf or extra/httpd-info.conf has loadmodule status_module modules/mod_ Status.so, stating that your Apache has already loaded the module, or that adding –enable-module=so when compiling it also indicates that the server supports Server-status.

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

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 without adding or

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

This article is from the Linux commune website (www.linuxidc.com) Source Link: http://www.linuxidc.com/Linux/2013-05/84743.htm

Apache Server Status Detailed

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.