uhttpd 3.5 KB

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