Prev: Next: Up: ListenHTTP[Contents][Index]


9.9.7 Service definitions

The Service section defines rules that decide to which backend to route requests received by that listener. Any number of Service section can be present. When a request is received, the listener iterates over all services in the order of their appearance in the configuration and applies the section rules to the request. If the rules match the request, the request is forwarded to the backend defined in that section.

See Service, for a detailed discussion of the Service statement.

ListenHTTP statement: ACME dir

This statement defines a special service with a built-in backend for handling ‘ACME’ challenge requests. See ACME, for a detailed discussion of its use.

The dir argument defines the directory where to look for challenge files.