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