Root/package/network/services/uhttpd/files/uhttpd.config

1# Server configuration
2config uhttpd main
3
4    # HTTP listen addresses, multiple allowed
5    list listen_http 0.0.0.0:80
6# list listen_http [::]:80
7
8    # HTTPS listen addresses, multiple allowed
9    list listen_https 0.0.0.0:443
10# list listen_https [::]:443
11
12    # Server document root
13    option home /www
14
15    # Reject requests from RFC1918 IP addresses
16    # directed to the servers public IP(s).
17    # This is a DNS rebinding countermeasure.
18    option rfc1918_filter 1
19
20    # Maximum number of concurrent requests.
21    # If this number is exceeded, further requests are
22    # queued until the number of running requests drops
23    # below the limit again.
24    option max_requests 3
25
26    # Certificate and private key for HTTPS.
27    # If no listen_https addresses are given,
28    # the key options are ignored.
29    option cert /etc/uhttpd.crt
30    option key /etc/uhttpd.key
31
32    # CGI url prefix, will be searched in docroot.
33    # Default is /cgi-bin
34    option cgi_prefix /cgi-bin
35
36    # List of extension->interpreter mappings.
37    # Files with an associated interpreter can
38    # be called outside of the CGI prefix and do
39    # not need to be executable.
40# list interpreter ".php=/usr/bin/php-cgi"
41# list interpreter ".cgi=/usr/bin/perl"
42
43    # Lua url prefix and handler script.
44    # Lua support is disabled if no prefix given.
45# option lua_prefix /luci
46# option lua_handler /usr/lib/lua/luci/sgi/uhttpd.lua
47
48    # CGI/Lua timeout, if the called script does not
49    # write data within the given amount of seconds,
50    # the server will terminate the request with
51    # 504 Gateway Timeout response.
52    option script_timeout 60
53
54    # Network timeout, if the current connection is
55    # blocked for the specified amount of seconds,
56    # the server will terminate the associated
57    # request process.
58    option network_timeout 30
59
60    # TCP Keep-Alive, send periodic keep-alive probes
61    # over established connections to detect dead peers.
62    # The value is given in seconds to specify the
63    # interval between subsequent probes.
64    # Setting this to 0 will disable TCP keep-alive.
65    option tcp_keepalive 1
66
67    # Basic auth realm, defaults to local hostname
68# option realm OpenWrt
69
70    # Configuration file in busybox httpd format
71# option config /etc/httpd.conf
72
73
74# Certificate defaults for px5g key generator
75config cert px5g
76
77    # Validity time
78    option days 730
79
80    # RSA key size
81    option bits 1024
82
83    # Location
84    option country DE
85    option state Berlin
86    option location Berlin
87
88    # Common name
89    option commonname OpenWrt
90

Archive Download this file



interactive