[NANOWEB DOCUMENTATION]

NANOWEB, the aEGiS PHP web server

mod_load_limit

This module stops nanoweb from serving pages when the server load gets higher than the one you specified with the LoadLimit directive. An built-in or a custom error message is send back then.

Alternatively you may wish to redirect incoming requests to a »fallback server« which holds a copy of all the available files. You can easiliy do so by giving the name of the secondary webserver with the LoadLimitRedirect directive. You need to enable this feature with LoadLimitAction=redir.

LoadLimit = 25.0
LoadLimitAction = redir
LoadLimitRedirect = http://www2.example.com/%REQUEST_URI


The server load redirection can also be activated on a per-directory basis, so you have the choice to redirect parts of your site earlier than others or even to different fallback servers.

The virtual file /proc/loadavg is used by this module to determine if it should block incoming requests.


NANOWEB, the aEGiS PHP web server