hiawatha.conf.sample 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # Hiawatha main configuration file
  2. # This is a basic sample configuration file that sets up a:
  3. # 1) Default web site at /srv/http/hiawatha (Note: fast CGI is not active on default site)
  4. # 2) Virtual host for phpmyadmin at /srv/http/phpMyAdmin
  5. # note: you must install phpmyadmin, mysql, php-mcrypt, and php-cgi separately. Be sure that extensions
  6. # mcrypt.so and mysql.so are enabled in your php.ini.
  7. # Also add phpmyadmin to your hosts file
  8. # 3) FastCGI server
  9. # GENERAL SETTINGS
  10. ServerId = http
  11. ConnectionsTotal = 150
  12. ConnectionsPerIP = 10
  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. ### The following fast CGI daemons require php-fpm using a UNIX socket and TCP port, respectively.
  22. # ACTIVATE a FastCGI server for php (using UNIX socket)
  23. FastCGIserver {
  24. FastCGIid = PHP5
  25. ConnectTo = /run/php-fpm/php-fpm.sock
  26. Extension = php
  27. SessionTimeout = 30
  28. }
  29. # ACTIVATE a FastCGI server for php (using IP-address and TCP port)
  30. #FastCGIserver {
  31. # FastCGIid = PHP5
  32. # ConnectTo = 127.0.0.1:9000
  33. # Extension = php
  34. # SessionTimeout = 30
  35. #}
  36. # DEFAULT WEBSITE
  37. # It is wise to use your IP address as the hostname of the default website
  38. # and give it a blank webpage. By doing so, automated webscanners won't find
  39. # your possible vulnerable website.
  40. #
  41. Hostname = 127.0.0.1
  42. WebsiteRoot = /srv/http/hiawatha
  43. StartFile = index.html
  44. AccessLogfile = /var/log/hiawatha/access.log
  45. ErrorLogfile = /var/log/hiawatha/error.log
  46. #ErrorHandler = 404:/error.cgi
  47. UseXSLT = yes
  48. # VIRTUAL HOSTS
  49. VirtualHost {
  50. # If you set WebsiteRoot to /usr/share/webapps/phpMyAdmin you don't need followsymlinks
  51. # I symlinked the phpMyAdmin folder to '/srv/http/phpMyAdmin' so that I can easily remember where it's located but
  52. # still set 'WebsiteRoot' to the real source directory. You could point WebsiteRoot to the
  53. # symlinked directory, but you will have to set 'FollowSymlinks = yes' for that to function properly
  54. #FollowSymlinks = yes
  55. #WebsiteRoot = /srv/http/phpMyAdmin
  56. WebsiteRoot = /usr/share/webapps/phpMyAdmin
  57. Hostname = phpmyadmin
  58. AccessLogfile = /var/log/hiawatha/phpmyadmin/access.log
  59. ErrorLogfile = /var/log/hiawatha/phpmyadmin/error.log
  60. StartFile = index.php
  61. UseFastCGI = PHP5
  62. }
  63. # Add some more
  64. #VirtualHost {
  65. # Hostname = www.my-domain.com
  66. # WebsiteRoot = /svr/http/my-domain/public
  67. # StartFile = index.php
  68. # AccessLogfile = /svr/http/my-domain/log/access.log
  69. # ErrorLogfile = /svr/http/my-domain/log/error.log
  70. # TimeForCGI = 5
  71. # UseFastCGI = PHP5
  72. # UseToolkit = banshee
  73. #}
  74. #Additional settings for monitoring
  75. UrlToolkit {
  76. ToolkitID = banshee
  77. RequestURI isfile Return
  78. Match ^/(css|files|images|js)/ Return
  79. Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
  80. Match .*\?(.*) Rewrite /index.php?$1
  81. Match .* Rewrite /index.php
  82. }
  83. VirtualHost {
  84. Hostname = monitor.domain.com
  85. WebsiteRoot = /svr/http/monitor/public
  86. AccessLogfile = /svr/http/monitor/logfiles/access.log
  87. ErrorLogfile = /svr/http/monitor/logfiles/error.log
  88. StartFile = index.php
  89. # ExecuteCGI = yes
  90. UseFastCGI = PHP5 # Use if you use PHP as a FastCGI daemon
  91. TimeForCGI = 15
  92. UseToolkit = banshee
  93. }