This is our custom.hiawatha.conf.base:
# Hiawatha main configuration file
# Convictions Hosting Custom - September 9th
ServerString = Hiawatha_for_Kloxo-MR
ServerId = lxlabs
ConnectionsTotal = 2048
ConnectionsPerIP = 64
SystemLogfile = /usr/local/lxlabs/kloxo/log/hiawatha-system.log
GarbageLogfile = /usr/local/lxlabs/kloxo/log/hiawatha-garbage.log
MaxUrlLength = 65536
PIDfile = /usr/local/lxlabs/kloxo/init/kloxo-hiawatha.pid
BanOnGarbage = 300
BanOnMaxPerIP = 60
BanOnMaxReqSize = 300
KickOnBan = yes
RebanDuringBan = yes
ThreadPoolSize = 50
#CGIhandler = /opt/php53s/usr/bin/php-cgi:php
#ExecuteCGI = yes
WaitForCGI = yes
FastCGIserver {
FastCGIid = PHP5
#ConnectTo = 127.0.0.1:39000
ConnectTo = /usr/local/lxlabs/kloxo/init/kloxo-phpcgi.sock
Extension = php
}
MimetypeConfig = hiawatha-mimetype.conf
UrlToolkit {
ToolkitID = findindexfile
Match ^([^?]*)/(\?.*)?$ Rewrite $1/index.php$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.php(\?.*)?$ Rewrite $1/index.html$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.html(\?.*)?$ Rewrite $1/index.htm$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.htm(\?.*)?$ Rewrite $1/$2 Continue
}
UrlToolkit {
ToolkitID = expire_needed
Match .*\.jpg$ Expire 1 weeks
Match .*\.png$ Expire 1 weeks
Match .*\.gif$ Expire 1 weeks
Match .*\.css$ Expire 1 weeks
Match .*\.js$ Expire 1 weeks
Match .*\.gif$ Expire 1 weeks
Match .*\.eot$ Expire 1 weeks
Match .*\.svg$ Expire 1 weeks
Match .*\.ttf$ Expire 1 weeks
Match .*\.ico$ Expire 1 weeks
}
Binding {
BindingId = port_nonssl
Port = __nonssl_port__
#Interface = 0.0.0.0
MaxKeepAlive = 200
TimeForRequest = 8,25
MaxRequestSize = 102400
## not able more than 100MB; hiawatha-9.3-2 able until 2GB
MaxUploadSize = 2000
}
Binding {
BindingId = port_ssl
Port = __ssl_port__
#Interface = 0.0.0.0
MaxKeepAlive = 200
TimeForRequest = 8,25
MaxRequestSize = 102400
## not able more than 100MB; hiawatha-9.3-2 able until 2GB
MaxUploadSize = 2000
#RequiredCA = /usr/local/lxlabs/kloxo/etc/program.ca
SSLcertFile = /usr/local/lxlabs/kloxo/etc/program.pem
}
## CF - no need for Virtual Host, all default to this:
Hostname = 0.0.0.0
WebsiteRoot = /usr/local/lxlabs/kloxo/httpdocs
StartFile = index.php
AccessLogfile = /usr/local/lxlabs/kloxo/log/hiawatha-access.log
ErrorLogfile = /usr/local/lxlabs/kloxo/log/hiawatha-error.log
SecureURL = no
UseFastCGI = PHP5
UseToolkit = findindexfile, expire_needed
TimeForCGI = 3600
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
#ErrorHandler = 404:/error/404.html
ErrorHandler = 404:/theme/lbin/sitepreview.php
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
Comments:
No need declare virtual host, all go to the default. This stops all wigwam errors.
Values for maxkeepalive and timeforrequest are now within the proper range.
secureurl = no to stop phpmyadmin sort errors
You need to add the requiredssl directive if the option to force ssl for the panel is checked