plirof2

hiawatha -PHP-CGI .conf file v003symlinks

Feb 25th, 2022 (edited)
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.91 KB | None | 0 0
  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.
  7. # The 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 = 25
  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. }
  27. #
  28. #Binding {
  29. #   Port = 443
  30. #   TLScertFile = tls/hiawatha.pem
  31. #   Interface = 127.0.0.1
  32. #   MaxRequestSize = 2048
  33. #   TimeForRequest = 30
  34. #}
  35.  
  36.  
  37. # BANNING SETTINGS
  38. # Deny service to clients who misbehave.
  39. #
  40. #BanOnGarbage = 300
  41. #BanOnMaxPerIP = 60
  42. #BanOnMaxReqSize = 300
  43. #KickOnBan = yes
  44. #RebanDuringBan = yes
  45.  
  46.  
  47. # COMMON GATEWAY INTERFACE (CGI) SETTINGS
  48. # These settings can be used to run CGI applications.
  49. #
  50. #CGIhandler = /usr/bin/perl:pl
  51. CGIhandler = /opt/lampp/bin/php-cgi:php
  52. #CGIhandler = /usr/bin/python:py
  53. #CGIhandler = /usr/bin/ruby:rb
  54. #CGIhandler = /usr/bin/ssi-cgi:shtml
  55. #CGIextension = cgi
  56. #
  57. #FastCGIserver {
  58. #   FastCGIid = PHP7
  59. #   ConnectTo = /run/php/php7.0-fpm.sock
  60. #   Extension = php
  61. #}
  62.  
  63.  
  64. # URL TOOLKIT
  65. # This URL toolkit rule was made for the Banshee PHP framework,
  66. # which can be downloaded from http://www.banshee-php.org/
  67. #
  68. #UrlToolkit {
  69. #   ToolkitID = banshee
  70. #   RequestURI isfile Return
  71. #   Match ^/(css|files|fonts|images|js)($|/) Return
  72. #   Match ^/(favicon.ico|robots.txt)$ Return
  73. #   Match [^?]*(\?.*)? Rewrite /index.php$1
  74. #}
  75.  
  76.  
  77. # DIRECTORY SETTINGS
  78. # You can specify some settings per directory.
  79. #
  80. #Directory {
  81. #   DirectoryID = static
  82. #   Path = /css, /fonts, /images, /js
  83. #   ExpirePeriod = 2 weeks
  84. #}
  85. #
  86. #Directory {
  87. #   DirectoryID = files
  88. #   Path = /files
  89. #   ShowIndex = yes
  90. #   StartFile = index.html
  91. #   ExecuteCGI = no
  92. #}
  93.  
  94.  
  95. # DEFAULT WEBSITE
  96. # It is wise to use your IP address as the hostname of the default website
  97. # and give it a blank webpage. By doing so, automated webscanners won't find
  98. # your possible vulnerable website.
  99. #
  100. Hostname = 127.0.0.1
  101. #WebsiteRoot = /var/www/hiawatha
  102. WebsiteRoot = /opt/lampp/htdocs
  103. # You can only have index.php OR index.html (or put an extra .hiawatha file in folder)
  104. StartFile = index.html
  105. AccessLogfile = /var/log/hiawatha/access.log
  106. ErrorLogfile = /var/log/hiawatha/error.log
  107. #added to show index of folder inf no index_hiawatha.html file is found
  108. ShowIndex = yes
  109. ExecuteCGI = yes
  110. FollowSymlinks = yes
  111.  
  112. # VIRTUAL HOSTS
  113. # Use a VirtualHost section for each website you want to host.
  114. #
  115. #VirtualHost {
  116. #   Hostname = www.my-domain.com
  117. #   WebsiteRoot = /var/www/my-domain/public
  118. #   AccessLogfile = /var/www/my-domain/log/access.log
  119. #   ErrorLogfile = /var/www/my-domain/log/error.log
  120. #   TimeForCGI = 5
  121. #   UseFastCGI = PHP7
  122. #   UseToolkit = banshee
  123. #   UseDirectory = static, files
  124. #}
  125.  
Add Comment
Please, Sign In to add comment