Processed locallyNginx C moduleHTTP handlerFiltersBuildable

Nginx C module generator

Generate buildable Nginx HTTP C module templates: content handler, response header filter, response body filter, access control, variables and log phase, with config, build.sh, README, test script and nginx.conf example.

Quick presets

Start from one Nginx module capability profile, then enable more capabilities as needed.

Module information

Generate the C module symbol, directive prefix and README.

Module capabilities

A single module can combine multiple processing phases.

Content handler

Return a configurable response directly from a location.

Response header filter

Add a custom header to responses.

Log phase

Log request information in the LOG phase.

Content handler

After enabling xwrt_demo_content in a location, the handler returns the response directly.

Response header filter

Add a header every time a response passes through the header filter.

Log phase

Write to error_log in the LOG phase; the info level is required to see it.

Output contents

The C source and module config are always generated.