Hello,
I'm testing hiawatha with few virtualhosts, all work fine, but when for security check I triest to download .php file, I was able, so config file with password, etc, acn be downloaded using wget.
here part of config:
FastCGIserver {
FastCGIid = PHP7
ConnectTo = /run/php/php7.0-fpm.sock
Extension = php
}
UrlToolkit {
ToolkitID = wordpress
RequestURI exists Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
VirtualHost {
Hostname = my-domain.com, www.my-domain.com
WebsiteRoot = /home/my-domain/public_html
AccessLogfile = /var/log/hiawatha/my-domain.com/access.log
ErrorLogfile = /var/log/hiawatha/my-domain.com/error.log
StartFile = index.php
TimeForCGI = 60
UseFastCGI = PHP7
CustomHeader = X-Frame-Options: sameorigin
CustomHeader = Vary: Accept-Encoding
RandomHeader = 64
UseToolkit = wordpress
EnforceFirstHostname = yes
PreventXSS = yes
PreventCSRF = yes
PreventSQLi = yes
}