X-Reproxy-URL header support for lighttpd 1.4.x
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
mod_reproxy.c

README.md

mod_reproxy for lighttpd 1.4.x

This module add X-Reproxy-URL header support to lighttpd 1.4.x.

Installation

Download mod_reproxy.c and copy it into lighttpd src directory.

Edit src/Makefile.am and add this after last module

lib_LTLIBRARIES += mod_reproxy.la
mod_reproxy_la_SOURCES = mod_reproxy.c
mod_reproxy_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
mod_reproxy_la_LIBADD = $(common_libadd)

and build lighttpd by following commands

./autogen.sh
./configure ...
make && make install

Usage

load mod_reproxy

server.modules = (
    "mod_reproxy", ...
)

And insert following line to the scope where you want to use X-Reproxy-URL:

reproxy.enable = "enable"

In this scope, you can use X-Reproxy-URL header in any other module that use subrequest. (ex: mod_cgi, mod_fastcgi, mod_proxy, and etc)

Configuration

All configuration options are boolean. "enable" | "diable"

  • reproxy.enable
    • enable X-Reproxy-URL (default "disable")
  • reproxy.streaming
    • enable response streaming, don't cache whole content data in memory (default: "enable")
  • reproxy.debug
    • enable debug output (default "disable")

FAQ

  • There's no 1.5 support?
    • No. Because lighttpd 1.5 has already same feature known as X-Rewrite-*

LIMITATION

  • No ipv6 support
  • No SSL support
  • No HTTP/1.1 support

LICENSE

BSD. Same as lighttpd