summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-07 16:21:10 +0200
committerJohn Crispin <blogic@openwrt.org>2015-10-17 16:47:02 +0200
commit3614ae6eb7b6101fa5d0f14ff0d3a6eb4970c3da (patch)
tree3469adf10cbc166479bb4e27790aa9e5fc331bce /uhttpd.h
parent7ed2edc40dd6d0171266f3bfbc96466e1d25e3cd (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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index be9ee7f..897d4b3 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -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 {