Home

Awesome

nginx_mod_so - Nginx DSO module

nginx_mod_so is dynamic loadable module for Nginx.

Usage

  1. build nginx with mod_so

    move to nginx source directory

    % cd nginx-1.0.9

    apply patch

    % patch -p1 < <NGINX_MOD_SO_DIR>/nginx-1.0.9-mod-so.patch

    % ./configure --add-module=<NGINX_MOD_SO_DIR> % make

  2. compile shared module

    % cd example % make NGINX_DIR=<NGINX_BUILD_DIR> % mkdir <NGINX_INSTALLED_DIR>/modules % cp http_example.so <NGINX_INSTALLED_DIR>/modules/

  3. configuration

    module ./modules/http_example.so; http { ... location = /example { example; } ... }

Author

Tsukasa Hamano hamano@osstech.co.jp