[PATCH]: allow serverroot setting in configfile
walter harms
wharms at bfs.de
Fri Jun 20 15:34:05 UTC 2008
hi list,
i had the local request to add the serverroot setting into the configfile
to allow configuration in one place, for more easy deployment.
re,
wh
--- networking/httpd.c.org 2008-06-20 17:17:42.000000000 +0200
+++ networking/httpd.c 2008-06-20 17:16:22.000000000 +0200
@@ -37,6 +37,7 @@
*
* httpd.conf has the following format:
*
+ * H:/serverroot # define the server root. It will override -h
* A:172.20. # Allow address from 172.20.0.0/16
* A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127
* A:10.0.0.0/255.255.255.128 # Allow any address that previous set
@@ -687,6 +688,13 @@
continue;
}
+ if (*p0 == 'H') {
+ home_httpd = xstrdup(after_colon);
+ xchdir(home_httpd);
+ continue;
+ }
+
+
#if ENABLE_FEATURE_HTTPD_BASIC_AUTH \
|| ENABLE_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES \
|| ENABLE_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpd.c.diff
Type: text/x-patch
Size: 744 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080620/802acbb2/attachment-0002.bin
More information about the busybox
mailing list