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.