hiawatha.conf 3.2 KB

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