uhttpd 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Server configuration
  2. config uhttpd main
  3. # HTTP listen addresses, multiple allowed
  4. list listen_http 127.0.0.1:81
  5. #list listen_http [::]:80
  6. # HTTPS listen addresses, multiple allowed
  7. #list listen_https 0.0.0.0:443
  8. #list listen_https [::]:443
  9. # Server document root
  10. option home /opt/lib
  11. # Reject requests from RFC1918 IP addresses
  12. # directed to the servers public IP(s).
  13. # This is a DNS rebinding countermeasure.
  14. option rfc1918_filter 1
  15. # Maximum number of concurrent requests.
  16. # If this number is exceeded, further requests are
  17. # queued until the number of running requests drops
  18. # below the limit again.
  19. option max_requests 3
  20. # Maximum number of concurrent connections.
  21. # If this number is exceeded, further TCP connection
  22. # attempts are queued until the number of active
  23. # connections drops below the limit again.
  24. option max_connections 100
  25. # Certificate and private key for HTTPS.
  26. # If no listen_https addresses are given,
  27. # the key options are ignored.
  28. #option cert /etc/uhttpd.crt
  29. #option key /etc/uhttpd.key
  30. # CGI url prefix, will be searched in docroot.
  31. # Default is /cgi-bin
  32. option cgi_prefix /admin
  33. list index_page "admin2.cgi"
  34. option error_page "/admin/admin2.cgi"
  35. # List of extension->interpreter mappings.
  36. # Files with an associated interpreter can
  37. # be called outside of the CGI prefix and do
  38. # not need to be executable.
  39. # list interpreter ".php=/usr/bin/php-cgi"
  40. # list interpreter ".cgi=/usr/bin/perl"
  41. # list interpreter ".cgi=/bin/bash"
  42. # Lua url prefix and handler script.
  43. # Lua support is disabled if no prefix given.
  44. # option lua_prefix /luci
  45. # option lua_handler /usr/lib/lua/luci/sgi/uhttpd.lua
  46. # Specify the ubus-rpc prefix and socket path.
  47. # option ubus_prefix /ubus
  48. # option ubus_socket /var/run/ubus.sock
  49. # CGI/Lua timeout, if the called script does not
  50. # write data within the given amount of seconds,
  51. # the server will terminate the request with
  52. # 504 Gateway Timeout response.
  53. option script_timeout 60
  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. # HTTP Keep-Alive, specifies the timeout for persistent
  60. # HTTP/1.1 connections. Setting this to 0 will disable
  61. # persistent HTTP connections.
  62. option http_keepalive 20
  63. # TCP Keep-Alive, send periodic keep-alive probes
  64. # over established connections to detect dead peers.
  65. # The value is given in seconds to specify the
  66. # interval between subsequent probes.
  67. # Setting this to 0 will disable TCP keep-alive.
  68. option tcp_keepalive 1
  69. # Basic auth realm, defaults to local hostname
  70. # option realm OpenWrt
  71. # Configuration file in busybox httpd format
  72. # option config /etc/httpd.conf
  73. # Do not follow symlinks that point outside of the
  74. # home directory.
  75. option no_symlinks 1
  76. # Do not produce directory listings but send 403
  77. # instead if a client requests an url pointing to
  78. # a directory without any index file.
  79. option no_dirlists 1
  80. # Do not authenticate any ubus-rpc requests against
  81. # the ubus session/access procedure.
  82. # This is dangerous and should be always left off
  83. # except for development and debug purposes!
  84. # option no_ubusauth 0
  85. # Certificate defaults for px5g key generator
  86. #config cert px5g
  87. # Validity time
  88. #option days 730
  89. # RSA key size
  90. #option bits 1024
  91. # Location
  92. #option country DE
  93. #option state Berlin
  94. #option location Berlin
  95. # Common name
  96. #option commonname OpenWrt