Sure Hugo and thanks for your quick response:
hiawatha.conf is:
# Hiawatha main configuration file#
# GENERAL SETTINGS
#
ServerId = www-data
ConnectionsTotal = 2500
ConnectionsPerIP = 35
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
ExploitLogfile = /var/log/hiawatha/exploit.log
MonitorServer = My.Ip.Here
LogFormat = extended
ServerString = SimpleHTTPserver
CGIwrapper = /usr/sbin/cgi-wrapper
# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
# Interface = 127.0.0.1
MaxKeepAlive = 50
TimeForRequest = 12,50
}
# BANNING SETTINGS
# Deny service to clients who misbehave.
#
BanOnGarbage = 300
BanOnMaxPerIP = 300
BanOnMaxReqSize = 300
BanOnTimeout = 300
KickOnBan = yes
RebanDuringBan = yes
BanOnDeniedBody = 300
BanOnSQLi = 300
# This settings is proofed to be working on IE, firefox and chrome on Banshee 3.5, 3.7
# Other than the above mentioned, you may need to change the value
BanOnFlooding = 90/1:300
#BanlistMask = deny 192.168.20.0/24, deny 127.0.0.1
BanlistMask = deny 127.0.0.1
BanOnInvalidURL = 300
BanOnWrongPassword = 3:300
# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications.
#
#CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/php5-cgi:php,php5
#CGIhandler = /usr/bin/python:py
#CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
FastCGIserver {
FastCGIid = PHP5
ConnectTo = /var/run/php5-fpm.sock
Extension = php
SessionTimeout = 600
}
# URL TOOLKIT
# This URL toolkit rule was made for the Banshee PHP framework, which
# can be downloaded from http://www.hiawatha-webserver.org/banshee
#
UrlToolkit {
ToolkitID = scannerblocker
Header User-Agent ^w3af.sourceforge.net Return
Header User-Agent ^dirbuster Return
Header User-Agent ^nikto Return
Header User-Agent ^sqlmap Return
Header User-Agent ^fimap Return
Header User-Agent ^nessus Return
Header User-Agent ^whatweb Return
Header User-Agent ^Openvas Return
Header User-Agent ^jbrofuzz Return
Header User-Agent ^libwhisker Return
Header User-Agent ^webshag Return
Header User-Agent ^WVS Return
Header User-Agent ^Morfeus Return
Header User-Agent ^Fucking Return
Header User-Agent ^Scanner Return
Header User-Agent ^Aboundex Return
Header User-Agent ^AlphaServer Return
Header User-Agent ^Indy Return
Header User-Agent ^ZmEu Return
Header User-Agent ^social Return
Header User-Agent ^Zollard Return
Header User-Agent ^CLR Return
Header User-Agent ^Camino Return
Header User-Agent ^Nmap Return
Header HTTP:Acunetix-Product ^WVS Return
}
UrlToolkit {
ToolkitID = banshee
RequestURI isfile Return
Call scannerblocker
Match ^/(css|files|images|js|slimstat)($|/) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
UrlToolkit {
ToolkitID = monitor
RequestURI isfile Return
Call scannerblocker
Match ^/(css|files|images|js|slimstat)($|/) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
UrlToolkit {
ToolkitID = wordpress
RequestURI exists Return
Call scannerblocker
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
UrlToolkit {
ToolkitID = drupal
RequestURI isfile Return
Match ^/favicon.ico$ Return
Match /(.*)\?(.*) Rewrite /index.php?q=$1&$2
Match /(.*) Rewrite /index.php?q=$1
}
# DEFAULT WEBSITE
Hostname = My.IP.Here (So it's not on the web).
WebsiteRoot = /var/www/hiawatha
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
Include /etc/hiawatha/enable-sites/
Site config file:
VirtualHost {
Hostname = mysite.com, www.mysite.com
WebsiteRoot = /var/www/mysite.com/web
ErrorLogfile = /var/www/mysite.com/logs/error.log
StartFile = index.php
ExecuteCGI = yes
UseFastCGI = PHP5 # Use if you use PHP as a FastCGI daemon
TimeForCGI = 220
UseToolkit = wordpress
}
A few hints that might help:
- I can load the admin (wp-admin) but not the front end so I'm guessing it's something in the theme (yet I see no error on screen or log so I can't debug).
- I have disabled all plugins and it still happens.
- Other WP sites work on the same server.
- At times I get a "connection reset" error and only restarting hiawatha solves it.
I'm really hoping you can show me how I can get the actual error and not just error 500.
Thanks!