add default cgi prefix
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 16:46:11 +0000 (17:46 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 16:46:11 +0000 (17:46 +0100)
main.c
uhttpd.h

diff --git a/main.c b/main.c
index c0a6a823ae6f5b334a6c67d3721a91602ff554da..3013dabccbfa88d60cc0b31942226a07ba196007 100644 (file)
--- a/main.c
+++ b/main.c
@@ -164,6 +164,7 @@ static void init_defaults(void)
        conf.http_keepalive = 0; /* fixme */
        conf.max_requests = 3;
        conf.realm = "Protected Area";
+       conf.cgi_prefix = "/cgi-bin";
 
        uh_index_add("index.html");
        uh_index_add("index.htm");
index 1e487f8ab526eeb05431ece86e079e34dad23f42..c900e90076b1a96bcbeedfaa051e0da8d269935b 100644 (file)
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -41,6 +41,7 @@ struct config {
        char *realm;
        char *file;
        char *error_handler;
+       char *cgi_prefix;
        int no_symlinks;
        int no_dirlists;
        int network_timeout;