From: Felix Fietkau Date: Mon, 31 Dec 2012 16:46:11 +0000 (+0100) Subject: add default cgi prefix X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98a231f91d7731d4f13ea9e4c4f568e42349faa2;p=oweals%2Fuhttpd.git add default cgi prefix --- diff --git a/main.c b/main.c index c0a6a82..3013dab 100644 --- 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"); diff --git a/uhttpd.h b/uhttpd.h index 1e487f8..c900e90 100644 --- 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;