Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Hiawatha main configuration file
  2. #
  3.  
  4. # VARIABLES
  5. # With 'set', you can declare a variable. Make sure the name of the
  6. # variable doesn't conflict with any of the configuration options. The
  7. # variables are case-sensitive and cannot be redeclared.
  8. #
  9. #set LOCALHOST = 127.0.0.0/8
  10.  
  11.  
  12. # GENERAL SETTINGS
  13. #
  14. ServerId = www-data
  15. ConnectionsTotal = 1000
  16. ConnectionsPerIP = 35
  17. SystemLogfile = /var/log/hiawatha/system.log
  18. GarbageLogfile = /var/log/hiawatha/garbage.log
  19.  
  20.  
  21. # BINDING SETTINGS
  22. # A binding is where a client can connect to.
  23. #
  24. Binding {
  25. Port = 80
  26. # Interface = 127.0.0.1
  27. # MaxKeepAlive = 30
  28. # TimeForRequest = 3,20
  29. }
  30. #
  31. #Binding {
  32. # Port = 443
  33. # Interface = ::1
  34. # MaxKeepAlive = 30
  35. # TimeForRequest = 3,20
  36. # TLScertFile = hiawatha.pem
  37. #}
  38.  
  39.  
  40. # BANNING SETTINGS
  41. # Deny service to clients who misbehave.
  42. #
  43. #BanOnGarbage = 300
  44. #BanOnMaxPerIP = 60
  45. #BanOnMaxReqSize = 300
  46. #KickOnBan = yes
  47. #RebanDuringBan = yes
  48.  
  49.  
  50. # COMMON GATEWAY INTERFACE (CGI) SETTINGS
  51. # These settings can be used to run CGI applications.
  52. #
  53. #CGIhandler = /usr/bin/perl:pl
  54. #CGIhandler = /usr/bin/php-cgi:php
  55. #CGIhandler = /usr/bin/python:py
  56. #CGIhandler = /usr/bin/ruby:rb
  57. #CGIhandler = /usr/bin/ssi-cgi:shtml
  58. #CGIextension = cgi
  59. #
  60. CGIhandler = /usr/sbin/php5-fpm:php
  61. CGIextension = cgi
  62.  
  63. #FastCGIserver {
  64. # FastCGIid = PHP5
  65. # ConnectTo = 127.0.0.1:2005
  66. # Extension = php
  67. #}
  68.  
  69. FastCGIserver {
  70. FastCGIid = PHP5
  71. ConnectTo = /var/run/php5-fpm.sock
  72. Extension = php
  73. SessionTimeout = 600
  74. }
  75.  
  76. # URL TOOLKIT
  77. # This URL toolkit rule was made for the Banshee PHP framework, which
  78. # can be downloaded from http://www.hiawatha-webserver.org/banshee
  79. #
  80. UrlToolkit {
  81. ToolkitID = banshee
  82. RequestURI isfile Return
  83. Match ^/(css|files|images|js|slimstat)($|/) Return
  84. Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
  85. Match .*\?(.*) Rewrite /index.php?$1
  86. Match .* Rewrite /index.php
  87. }
  88.  
  89.  
  90. # DEFAULT WEBSITE
  91. # It is wise to use your IP address as the hostname of the default website
  92. # and give it a blank webpage. By doing so, automated webscanners won't find
  93. # your possible vulnerable website.
  94. #
  95. Hostname = 127.0.0.1
  96. WebsiteRoot = /var/www/hiawatha
  97. StartFile = index.html
  98. AccessLogfile = /var/log/hiawatha/access.log
  99. ErrorLogfile = /var/log/hiawatha/error.log
  100. #ErrorHandler = 404:/error.cgi
  101.  
  102. Include /etc/hiawatha/enable-sites/
  103.  
  104. # VIRTUAL HOSTS
  105. # Use a VirtualHost section to declare the websites you want to host.
  106. #
  107. #VirtualHost {
  108. # Hostname = www.my-domain.com
  109. # WebsiteRoot = /var/www/my-domain/public
  110. # StartFile = index.php
  111. # AccessLogfile = /var/www/my-domain/log/access.log
  112. # ErrorLogfile = /var/www/my-domain/log/error.log
  113. # TimeForCGI = 5
  114. # UseFastCGI = PHP5
  115. # UseToolkit = banshee
  116. #}
  117.  
  118.  
  119. # DIRECTORY SETTINGS
  120. # You can specify some settings per directory.
  121. #
  122. #Directory {
  123. # Path = /home/baduser
  124. # ExecuteCGI = no
  125. # UploadSpeed = 10,2
  126. #}