I've proceeded according to the HowTo, but still...
My hiawatha.conf
##########
## GENERAL SETTINGS
ServerId = www:www
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
##########
## BINDING SETTINGS
## A binding is where a client can connect to.
Binding {
#BindingId = lo0
Port = 80
#Interface = 127.0.0.1
#Interface = 0.0.0.0
MaxKeepAlive = 30
TimeForRequest = 3,20
}
##########
## COMMON GATEWAY INTERFACE (CGI) SETTINGS
## These settings can be used to run CGI applications. Use the 'php-fcgi'
## tool to start PHP as a FastCGI daemon.
FastCGIserver {
FastCGIid = php-fpm
ConnectTo = /var/run/php/php-fpm.sock
Extension = php
}
##########
## 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 = banshee
RequestURI isfile Return
Match ^/(css|files|images|js|slimstat)($|/) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
##########
## DEFAULT WEBSITE
## It is wise to use your IP address as the hostname of the default website
## and give it a blank webpage. By doing so, automated webscanners won't find
## your possible vulnerable website.
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/var/www/hiawatha
AccessLogfile = /var/log/hiawatha/default-access.log
ErrorLogfile = /var/log/hiawatha/default-error.log
StartFile = index.html
#ErrorHandler = 404:/error.cgi
#TimeForCGI = 5
UseFastCGI = php-fcgi
UseToolkit = banshee
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
Alias /icons:/Volumes/MHData/Web/icons
Alias /images:/Volumes/MHData/Web/images
Alias /download:/Volumes/MHData/Web/download
Alias /upload:/Volumes/MHData/Web/upload
Alias /apps:/Volumes/MHData/Web/apps
Alias /tools:/Volumes/MHData/Web/tools
##########
## VIRTUAL HOSTS
## Use a VirtualHost section to declare the websites you want to host.
VirtualHost {
Hostname = my.host.net, 192.168.5.100
#RequiredBinding = en0
WebsiteRoot = /Volumes/MHData/Web/sites/my.host.net
AccessLogfile = /var/log/hiawatha/my.host.net-access.log
ErrorLogfile = /var/log/hiawatha/my.host.net-error.log
StartFile = index.html
}
My php-fcgi.conf
## Path to PID-file.
## PidFile = <filename>
PidFile = /var/run/php/php-fpm.pid
## Number of maximum requests per fork before respawning.
## MaxRequests = <number>
MaxRequests = 100
## PHP FastCGI servers to start.
## Server = <php-cgi executable>;<forks>;<binding>;<UID>[:<GIDs>][;<PHP configuration file>]
Server = /usr/local/sbin/php-fpm ; 3 ; /var/run/php/php-fpm.sock ; www:www ; /usr/local/etc/php/5.4/php.ini