Advertisement
Guest User

hiawatha.conf

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