Mod_status module of Lighttpd

Source: Internet
Author: User
Lighttpd Monitoring

LighttpdThe status monitoring of depends onMod_statusModule, fortunately,LighttpdBuilt-in by defaultMod_statusModule. What we need to do is to open the configuration file.Lighttpd. Conf, enable this module, that is, delete the "#" annotator at the front of the module, for example:

 
Server. Modules = (# "mod_rewrite", # "mod_redirect", # "mod_alias", "mod_access", # "mod_trigger_b4_dl", # "mod_auth ","Mod_status"," Mod_fastcgi "," mod_accesslog ")

Other modules are omitted in the preceding configuration for ease of description.

ThenLighttpdIn. conf, find the following parts:

#### Status modulestatus. Status-url = "/Server-status"

By default, the preceding statements are commented out. Similarly, delete the annotator, save the configuration file, and restart the system.Lighttpd.

Assume thatLighttpdThe IP address of the server is 10.0.0.1 and its domain name is http://www.domain.com /. In this way, the status page is:

 
Http: // 10.0.0.1/Server-status

Or

 
Http://www.domain.com/server-status

Finally, we recommend that you modify the default server-status, for example:

 
#### Status modulestatus. Status-url = "/my-Lighttpd-Status"
 
You can also comment out the status module and use include to reference it.
 
For example: Include "server-status.conf"
 
Vim include "server-status.conf"
Server. Modules + = ("mod_status ")

$ HTTP ["remoteip"] = "127.0.0.1 "{
Status. Status-url = "/Server-status"
}

$ HTTP ["remoteip"] = "192.168.1.0/24 "{
Status. Status-url = "/Server-status"
}

$ HTTP ["remoteip"] = "***. ***/29 "{
Status. Status-url = "/Server-status"
}
 
Set a host that can access server-status.
 
 

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.