diff options
author | John Crispin <blogic@openwrt.org> | 2015-10-07 16:21:10 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-10-17 16:47:02 +0200 |
commit | 3614ae6eb7b6101fa5d0f14ff0d3a6eb4970c3da (patch) | |
tree | 3469adf10cbc166479bb4e27790aa9e5fc331bce /uhttpd.h | |
parent | 7ed2edc40dd6d0171266f3bfbc96466e1d25e3cd (diff) |
add a -y parameter for cgi-bin redirects
this allows an alias entry inside the root folder point at a cgi-bin script
-y foo=bar will redirect /foo to /cgi-bin/bar
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'uhttpd.h')
-rw-r--r-- | uhttpd.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -46,6 +46,12 @@ struct client; +struct alias { + struct list_head list; + char *alias; + char *path; +}; + struct config { const char *docroot; const char *realm; @@ -70,6 +76,8 @@ struct config { int script_timeout; int ubus_noauth; int ubus_cors; + int cgi_prefix_len; + struct list_head cgi_alias; }; struct auth_realm { |