Forum

Site using shtml not working since update

Fred
24 March 2016, 00:06
Hi Hugo,

Since upgrading to Hiawatha v10.1 my static website that uses .shtml is no longer working..
HTTP500: SERVER ERROR 

If I point the WebsiteRoot to a normal html everything is showing..
Here is my code
set LOCALHOST = 127.0.0.0/8
set MyIPv4 = 10.8.20.14
#set MyIPv6 = fde4:8dba:82e1:ffff::42
set TrustedIP_1 = 82.30.xx.xxx # office
set TrustedIP_2 = 86.8.xx.xxx # head office
set TrustedIP_3 = 91.203.xx.xxx # proxy server

# GENERAL SETTINGS
#
ServerString = Hiawatha
ServerId = www:www
ConnectionsTotal = 4096 # Maximum number of simultaneous connections. Default = 100
ConnectionsPerIP = 32 # Maximum number of simultaneous connections per IP address. Default = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
ThreadKillRate = 10
CacheSize = 8 # Size of Hiawatha's internal file cache. Maximum is 1024 (megabytes). Default = 10
CacheMaxFilesize = 512 # Maximum size of a file Hiawatha will store in its internal cache. Default = 256
MaxUrlLength = 1000
MinTLSversion = TLS1.2
DHsize = 4096 # Set the size of the Diffie-Hellman key. Default = 2048
SocketSendTimeout = 30
LogfileMask = deny LOCALHOST, deny MyIPv4, deny TrustedIP_1, deny TrustedIP_2, deny TrustedIP_3
RequestLimitMask = deny LOCALHOST, deny MyIPv4, deny TrustedIP_1, deny TrustedIP_2, deny TrustedIP_3


# BINDING SETTINGS
# A binding is where a client can connect to.
#
include bindings.conf

# BANNING SETTINGS
# Deny service to clients who misbehave.
#
BanOnGarbage = 300
BanOnInvalidURL = 60
BanOnMaxPerIP = 15
BanOnMaxReqSize = 300
BanOnWrongPassword = 6:900
BanOnSQLi = 3600
KickOnBan = yes
RebanDuringBan = yes
BanlistMask = deny LOCALHOST, deny MyIPv4, deny TrustedIP_1, deny TrustedIP_2, deny TrustedIP_3
ChallengeClient = 768, javascript, 15

# COMMON GATEWAY INTERFACE (CGI) SETTINGS
#
CGIhandler = /usr/bin/ssi-cgi:shtml
CGIhandler = /usr/local/bin/php-cgi:php
FastCGIserver {
FastCGIid = PHP5-FPM
ConnectTo = /var/run/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
#
include toolkit.conf

# DEFAULT WEBSITE
# Use IP address as the hostname of the default website and give it a blank webpage.
# By doing so, automated webscanners won't find the possible vulnerable website.
#
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/www/default/httpdocs
StartFile = index.html
AccessLogfile = /usr/local/www/default/logs/default.access.log
ErrorLogfile = /usr/local/www/default/logs/default.error.log
#ErrorHandler = 404:/error.cgi

VirtualHost {
Hostname = mydomain.co.uk, www.mydomain.co.uk
WebsiteRoot = /usr/local/www/production/httpdocs
StartFile = index.shtml
AccessLogfile = /usr/local/www/production/logs/default.access.log
ErrorLogfile = /usr/local/www/production/logs/default.error.log
TimeForCGI = 15
UseFastCGI = PHP5-FPM
DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$
ExecuteCGI = yes
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
}

Could you please help me?

Thank you in advance
Fred
24 March 2016, 01:07
Never mind... the fault is mine
This topic has been closed.