This module add X-Reproxy-URL
header support to lighttpd 1.4.x.
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
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)
All configuration options are boolean. "enable" | "diable"
- reproxy.enable
- enable
X-Reproxy-URL
(default "disable")
- enable
- reproxy.streaming
- enable response streaming, don't cache whole content data in memory (default: "enable")
- reproxy.debug
- enable debug output (default "disable")
- There's no 1.5 support?
- No. Because lighttpd 1.5 has already same feature known as
X-Rewrite-*
- No. Because lighttpd 1.5 has already same feature known as
- No ipv6 support
- No SSL support
- No HTTP/1.1 support
BSD. Same as lighttpd