Banshee
the secure PHP framework

Forum

Content Encoding Error

tombish
30 april 2020, 03:35
Hi,

I have had some trouble trying out banshee with Hiawatha web-server.
My browser cannot resolve the index.php file and end up getting a "Content Encoding Error" with Firefox.
Cert file seems to be setup correctly and I can view existing images & html pages.

# Hiawatha main configuration file
#

# VARIABLES
# With 'set', you can declare a variable. Make sure the name of the
# variable doesn't conflict with any of the configuration options.
# The variables are case-sensitive and cannot be redeclared.
#
#set LOCALHOST = 127.0.0.0/8


# GENERAL SETTINGS
#
ServerId = www-data
ConnectionsTotal = 1000
ConnectionsPerIP = 25
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
MinTLSversion = 1.2


# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
}

Binding {
Port = 443
TLScertFile = /etc/letsencrypt/live/artfulassemblage.com/combined.pem
}


# BANNING SETTINGS
# Deny service to clients who misbehave.
#
BanOnGarbage = 300
BanOnMaxPerIP = 60
BanOnMaxReqSize = 300
KickOnBan = yes
RebanDuringBan = yes


# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications.
#
#CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/bin/php-cgi:php
#CGIhandler = /usr/bin/python:py
#CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
#
FastCGIserver {
FastCGIid = PHP7
ConnectTo = /run/php/php7.3-fpm.sock
Extension = php
}


# URL TOOLKIT
# This URL toolkit rule was made for the Banshee PHP framework,
# which can be downloaded from http://www.banshee-php.org/
#
UrlToolkit {
ToolkitID = banshee
RequestURI isfile Return
Match ^/(css|files|fonts|images|js)(/|$) Return
Match ^/(favicon.ico|robots.txt)$ Return
Match [^?]*(\?.*)? Rewrite /index.php$1
}


# DIRECTORY SETTINGS
# You can specify some settings per directory.
#
Directory {
DirectoryID = static
Path = /css, /fonts, /images, /js
ExpirePeriod = 2 weeks
}

Directory {
DirectoryID = files
Path = /files
StartFile = index.html
ShowIndex = yes
ExecuteCGI = no
}


# 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 = 45.77.110.73
WebsiteRoot = /var/www/dummy
StartFile = index.html
AccessLogfile = /var/log/dummy/access.log
ErrorLogfile = /var/log/dummy/error.log


# VIRTUAL HOSTS
# Use a VirtualHost section for each website you want to host.
#
VirtualHost {
Hostname = www.artfulassemblage.com, , *.artfulassemblage.com
EnforceFirstHostname = yes
RequireTLS = yes
WebsiteRoot = /var/www/aa/public
AccessLogfile = /var/www/aa/log/access.log
ErrorLogfile = /var/www/aa/log/error.log
TimeForCGI = 10
UseFastCGI = PHP7
UseToolkit = banshee
UseDirectory = static, files
#CustomHeader = Strict-Transport-Security: max-age=15768000;includeSubDomains;preload
#CustomHeader = Content-Security-Policy:default-src 'self'
#CustomHeader = X-Content-Type-Options:nosniff
#CustomHeader = X-Frame-Options:DENY
#CustomHeader = X-XSS-Protection:1;mode=block
}


phpinfo file is here if that helps.
https://www.artfulassemblage.com/phpinfo.php

Any idea what I am doing wrong?
tombish
30 april 2020, 03:50
perhaps I should have followed the line in INSTALL

"In case of an error, add /setup to the URL to continue the
installation process."

Its working now ... forgot about the setup file.
Message preview

The following BB-codes are available in a message:

  • [b]Bold text[/b]
  • [center]Center text or imagen[/center]
  • [color=color name or #RGB code]Colored text[/color]
  • [i]Italic text[/i]
  • [img]Link to image[/img]
  • [right]Align text or image right[/right]
  • [s]Strike-through text[/s]
  • [size=pixelsize]Big or small text[/size]
  • [u]Underlined text[/u]
  • [url]Link to website[/url]
  • [url=link to website]Link text[/url]