aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 09:05:14 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 09:05:14 +0100
commit47367e1d50b81501e8a6ce215f8be4eeacdda693 (patch)
tree28be64a4a758a274ef2459628ec29384722cd3fb /networking/httpd.c
parente32b64c4ec9272295df6852fb2a2888d7799d2f0 (diff)
downloadbusybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.gz
busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.bz2
busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.zip
Convert all networking/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c122
1 files changed, 122 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index c20642e11..d301d598d 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -98,6 +98,128 @@
98 * 98 *
99 */ 99 */
100 /* TODO: use TCP_CORK, parse_config() */ 100 /* TODO: use TCP_CORK, parse_config() */
101//config:config HTTPD
102//config: bool "httpd"
103//config: default y
104//config: help
105//config: Serve web pages via an HTTP server.
106//config:
107//config:config FEATURE_HTTPD_RANGES
108//config: bool "Support 'Ranges:' header"
109//config: default y
110//config: depends on HTTPD
111//config: help
112//config: Makes httpd emit "Accept-Ranges: bytes" header and understand
113//config: "Range: bytes=NNN-[MMM]" header. Allows for resuming interrupted
114//config: downloads, seeking in multimedia players etc.
115//config:
116//config:config FEATURE_HTTPD_SETUID
117//config: bool "Enable -u <user> option"
118//config: default y
119//config: depends on HTTPD
120//config: help
121//config: This option allows the server to run as a specific user
122//config: rather than defaulting to the user that starts the server.
123//config: Use of this option requires special privileges to change to a
124//config: different user.
125//config:
126//config:config FEATURE_HTTPD_BASIC_AUTH
127//config: bool "Enable Basic http Authentication"
128//config: default y
129//config: depends on HTTPD
130//config: help
131//config: Utilizes password settings from /etc/httpd.conf for basic
132//config: authentication on a per url basis.
133//config: Example for httpd.conf file:
134//config: /adm:toor:PaSsWd
135//config:
136//config:config FEATURE_HTTPD_AUTH_MD5
137//config: bool "Support MD5 crypted passwords for http Authentication"
138//config: default y
139//config: depends on FEATURE_HTTPD_BASIC_AUTH
140//config: help
141//config: Enables encrypted passwords, and wildcard user/passwords
142//config: in httpd.conf file.
143//config: User '*' means 'any system user name is ok',
144//config: password of '*' means 'use system password for this user'
145//config: Examples:
146//config: /adm:toor:$1$P/eKnWXS$aI1aPGxT.dJD5SzqAKWrF0
147//config: /adm:root:*
148//config: /wiki:*:*
149//config:
150//config:config FEATURE_HTTPD_CGI
151//config: bool "Support Common Gateway Interface (CGI)"
152//config: default y
153//config: depends on HTTPD
154//config: help
155//config: This option allows scripts and executables to be invoked
156//config: when specific URLs are requested.
157//config:
158//config:config FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
159//config: bool "Support for running scripts through an interpreter"
160//config: default y
161//config: depends on FEATURE_HTTPD_CGI
162//config: help
163//config: This option enables support for running scripts through an
164//config: interpreter. Turn this on if you want PHP scripts to work
165//config: properly. You need to supply an additional line in your
166//config: httpd.conf file:
167//config: *.php:/path/to/your/php
168//config:
169//config:config FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
170//config: bool "Set REMOTE_PORT environment variable for CGI"
171//config: default y
172//config: depends on FEATURE_HTTPD_CGI
173//config: help
174//config: Use of this option can assist scripts in generating
175//config: references that contain a unique port number.
176//config:
177//config:config FEATURE_HTTPD_ENCODE_URL_STR
178//config: bool "Enable -e option (useful for CGIs written as shell scripts)"
179//config: default y
180//config: depends on HTTPD
181//config: help
182//config: This option allows html encoding of arbitrary strings for display
183//config: by the browser. Output goes to stdout.
184//config: For example, httpd -e "<Hello World>" produces
185//config: "&#60Hello&#32World&#62".
186//config:
187//config:config FEATURE_HTTPD_ERROR_PAGES
188//config: bool "Support for custom error pages"
189//config: default y
190//config: depends on HTTPD
191//config: help
192//config: This option allows you to define custom error pages in
193//config: the configuration file instead of the default HTTP status
194//config: error pages. For instance, if you add the line:
195//config: E404:/path/e404.html
196//config: in the config file, the server will respond the specified
197//config: '/path/e404.html' file instead of the terse '404 NOT FOUND'
198//config: message.
199//config:
200//config:config FEATURE_HTTPD_PROXY
201//config: bool "Support for reverse proxy"
202//config: default y
203//config: depends on HTTPD
204//config: help
205//config: This option allows you to define URLs that will be forwarded
206//config: to another HTTP server. To setup add the following line to the
207//config: configuration file
208//config: P:/url/:http://hostname[:port]/new/path/
209//config: Then a request to /url/myfile will be forwarded to
210//config: http://hostname[:port]/new/path/myfile.
211//config:
212//config:config FEATURE_HTTPD_GZIP
213//config: bool "Support for GZIP content encoding"
214//config: default y
215//config: depends on HTTPD
216//config: help
217//config: Makes httpd send files using GZIP content encoding if the
218//config: client supports it and a pre-compressed <file>.gz exists.
219
220//applet:IF_HTTPD(APPLET(httpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
221
222//kbuild:lib-$(CONFIG_HTTPD) += httpd.o
101 223
102//usage:#define httpd_trivial_usage 224//usage:#define httpd_trivial_usage
103//usage: "[-ifv[v]]" 225//usage: "[-ifv[v]]"