config BUSYBOX_CONFIG_HTTPD
bool "httpd"
- default y
+ default n
help
Serve web pages via an HTTP server.
config BUSYBOX_CONFIG_FEATURE_HTTPD_RANGES
bool "Support 'Ranges:' header"
- default y
+ default n
depends on BUSYBOX_CONFIG_HTTPD
help
Makes httpd emit "Accept-Ranges: bytes" header and understand
config BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH
bool "Enable Basic http Authentication"
- default y
+ default n
depends on BUSYBOX_CONFIG_HTTPD
help
Utilizes password settings from /etc/httpd.conf for basic
config BUSYBOX_CONFIG_FEATURE_HTTPD_AUTH_MD5
bool "Support MD5 crypted passwords for http Authentication"
- default y
+ default n
depends on BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH
help
Enables basic per URL authentication from /etc/httpd.conf
config BUSYBOX_CONFIG_FEATURE_HTTPD_CGI
bool "Support Common Gateway Interface (CGI)"
- default y
+ default n
depends on BUSYBOX_CONFIG_HTTPD
help
This option allows scripts and executables to be invoked
config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
bool "Support for running scripts through an interpreter"
- default y
+ default n
depends on BUSYBOX_CONFIG_FEATURE_HTTPD_CGI
help
This option enables support for running scripts through an
config BUSYBOX_CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
bool "Set REMOTE_PORT environment variable for CGI"
- default y
+ default n
depends on BUSYBOX_CONFIG_FEATURE_HTTPD_CGI
help
Use of this option can assist scripts in generating
config BUSYBOX_CONFIG_FEATURE_HTTPD_ENCODE_URL_STR
bool "Enable -e option (useful for CGIs written as shell scripts)"
- default y
+ default n
depends on BUSYBOX_CONFIG_HTTPD
help
This option allows html encoding of arbitrary strings for display
config BUSYBOX_CONFIG_FEATURE_HTTPD_ERROR_PAGES
bool "Support for custom error pages"
- default y
+ default n
depends on BUSYBOX_CONFIG_HTTPD
help
This option allows you to define custom error pages in
config BUSYBOX_CONFIG_FEATURE_HTTPD_PROXY
bool "Support for reverse proxy"
- default y
+ default n
depends on BUSYBOX_CONFIG_HTTPD
help
This option allows you to define URLs that will be forwarded
+++ /dev/null
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
-
-START=50
-HTTPD_BIN="/usr/sbin/httpd"
-
-system_config() {
- local cfg="$1"
-
- config_get hostname "$cfg" hostname
-}
-
-httpd_config() {
- local cfg="$1"
- local c_file port realm home args
-
- config_get c_file "$cfg" c_file
- [ -n "$c_file" -a -f "$c_file" ] && append args "-c \"$c_file\""
- config_get port "$cfg" port
- append args "-p ${port:-80}"
- config_get home "$cfg" home
- home="${home:-/www}"
- [ -d "$home" ] || return 1
- append args "-h \"$home\""
- config_get realm "$cfg" realm
- realm="${realm:-$hostname}"
- append args "-r \"$realm\""
- eval "$HTTPD_BIN $args"
-}
-
-start() {
- [ -x "$HTTPD_BIN" ] || return 1
-
- unset hostname
- config_load system
- config_foreach system_config system
- hostname="${hostname:-OpenWrt}"
-
- unset args
- config_load httpd
- [ "$?" != "0" ] && {
- uci_set_default httpd <<EOF
-config 'httpd'
- option 'port' '80'
- option 'home' '/www'
-EOF
- config_load httpd
- }
- config_foreach httpd_config httpd
-}
-
-stop() {
- killall httpd
-}