New applet: httpd, by Glenn Engel
This commit is contained in:
parent
c2e74ca934
commit
58c708af23
@ -236,6 +236,9 @@
|
||||
#ifdef CONFIG_HOSTNAME
|
||||
APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_HTTPD
|
||||
APPLET(httpd, httpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_HUSH
|
||||
APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
|
@ -775,7 +775,20 @@
|
||||
#define hostname_example_usage \
|
||||
"$ hostname\n" \
|
||||
"sage \n"
|
||||
|
||||
#ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH
|
||||
#define USAGE_HTTPD_BASIC_AUTH(a) a
|
||||
#else
|
||||
#define USAGE_HTTPD_BASIC_AUTH(a)
|
||||
#endif
|
||||
#define httpd_trivial_usage \
|
||||
"[-p <port>] [-d/-e <string>]" USAGE_HTTPD_BASIC_AUTH(" [-c <conf file>] [-r <realm>]")
|
||||
#define httpd_full_usage \
|
||||
"Listens for incoming http server requests.\n"\
|
||||
"Options:\n" \
|
||||
"\t-p PORT\tServer port (default 80).\n" \
|
||||
USAGE_HTTPD_BASIC_AUTH("\t-c FILE\tSpecifies configuration file. (default httpd.conf)\n\t-r REALM\tAuthentication Realm for Basic Authentication\n") \
|
||||
"\t-e STRING\tHtml encode STRING\n" \
|
||||
"\t-d STRING\tURL decode STRING\n"
|
||||
#define hwclock_trivial_usage \
|
||||
"[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]"
|
||||
#define hwclock_full_usage \
|
||||
|
@ -29,6 +29,20 @@ config CONFIG_HOSTNAME
|
||||
help
|
||||
Please submit a patch to add help text for this item.
|
||||
|
||||
config CONFIG_HTTPD
|
||||
bool "httpd"
|
||||
default n
|
||||
help
|
||||
Serve web pages via an HTTP server.
|
||||
|
||||
config CONFIG_FEATURE_HTTPD_BASIC_AUTH
|
||||
bool " Enable Basic Authentication and IP address checking"
|
||||
default n
|
||||
depends on CONFIG_HTTPD
|
||||
help
|
||||
Utilizes /etc/httpd.conf for security settings allowing
|
||||
ip address filtering and basic authentication on a per url basis.
|
||||
|
||||
config CONFIG_IFCONFIG
|
||||
bool "ifconfig"
|
||||
default n
|
||||
|
@ -26,6 +26,7 @@ NETWORKING-y:=
|
||||
NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o
|
||||
NETWORKING-$(CONFIG_FTPPUT) += ftpgetput.o
|
||||
NETWORKING-$(CONFIG_HOSTNAME) += hostname.o
|
||||
NETWORKING-$(CONFIG_HTTPD) += httpd.o
|
||||
NETWORKING-$(CONFIG_IFCONFIG) += ifconfig.o
|
||||
NETWORKING-$(CONFIG_IFUPDOWN) += ifupdown.o
|
||||
NETWORKING-$(CONFIG_IP) += ip.o
|
||||
|
1349
networking/httpd.c
Normal file
1349
networking/httpd.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user