AccessLogfile = /home/httpd/domain.com/stats/domain.com-custom_log
ErrorLogfile = /home/httpd/domain.com/stats/domain.com-error_log
# Hiawatha main configuration file
#
#ServerString = Hiawatha
ServerId = apache
ConnectionsTotal = 20480
ConnectionsPerIP = 64
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
MaxUrlLength = 65536
PIDfile = /var/run/hiawatha.pid
BanOnGarbage = 300
BanOnMaxPerIP = 60
BanOnMaxReqSize = 300
KickOnBan = yes
RebanDuringBan = yes
## MR -- no ban for localhost
BanlistMask = deny 127.0.0.1
ThreadPoolSize = 100
MimetypeConfig = mimetype.conf
LogFormat = extended
## MR - use 'X-Hiawatha-Cache: <seconds>' to enable cacha (2-3600)
## and use 'X-Hiawatha-Cache-Remove: <url>' to remove cache in php file
#CacheSize = 100
#CacheRProxyExtensions = css, gif, html, jpg, js, png, txt, ttf, svg, eot
CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/perl:cgi
#CGIhandler = /usr/bin/php-cgi:php
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/ruby:rb
CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
CGIwrapper = /usr/sbin/cgi-wrapper
MinSSLversion = TLS1.0
Include /opt/configs/hiawatha/conf/toolkits
Include /opt/configs/hiawatha/conf/defaults
Include /opt/configs/hiawatha/conf/domains
# Hiawatha main configuration file
#
#ServerString = Hiawatha
ServerId = apache
ConnectionsTotal = 20480
ConnectionsPerIP = 64
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log
MaxUrlLength = 65536
PIDfile = /var/run/hiawatha.pid
BanOnGarbage = 300
BanOnMaxPerIP = 60
BanOnMaxReqSize = 300
KickOnBan = yes
RebanDuringBan = yes
## MR -- no ban for localhost
BanlistMask = deny 127.0.0.1
ThreadPoolSize = 100
MimetypeConfig = mimetype.conf
LogFormat = extended
## MR - use 'X-Hiawatha-Cache: <seconds>' to enable cacha (2-3600)
## and use 'X-Hiawatha-Cache-Remove: <url>' to remove cache in php file
#CacheSize = 100
#CacheRProxyExtensions = css, gif, html, jpg, js, png, txt, ttf, svg, eot
CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/perl:cgi
#CGIhandler = /usr/bin/php-cgi:php
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/ruby:rb
CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
CGIwrapper = /usr/sbin/cgi-wrapper
MinSSLversion = TLS1.0
Include /opt/configs/hiawatha/conf/defaults
Include /opt/configs/hiawatha/conf/proxies
### begin - web of initial - do not remove/modify this line
## MR - NOTE:
## add 'header("X-Hiawatha-Cache: 10");' to index.php
UrlToolkit {
ToolkitID = block_shellshock
Header * \(\)\s*\{ DenyAccess
}
UrlToolkit {
ToolkitID = findindexfile
Match ^([^?]*)/(\?.*)?$ Rewrite $1/index.php$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.php(\?.*)?$ Rewrite $1/index.html$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.html(\?.*)?$ Rewrite $1/index.shtml$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.shtml(\?.*)?$ Rewrite $1/index.htm$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.htm(\?.*)?$ Rewrite $1/index.pl$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.pl(\?.*)?$ Rewrite $1/index.py$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.py(\?.*)?$ Rewrite $1/index.cgi$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.cgi(\?.*)?$ Rewrite $1/index.rb$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.rb(\?.*)?$ Rewrite $1/default.htm$2 Continue
RequestURI isfile Return
Match ^([^?]*)/default\.htm(\?.*)?$ Rewrite $1/Default.aspx$2 Continue
RequestURI isfile Return
Match ^([^?]*)/Default\.aspx(\?.*)?$ Rewrite $1/Default.asp$2 Continue
RequestURI isfile Return
Match ^([^?]*)/Default\.asp(\?.*)?$ Rewrite $1/$2 Continue
}
UrlToolkit {
ToolkitID = permalink
RequestURI exists Return
## process for 'special dirs' of Kloxo-MR
Match ^/(stats|awstats|awstatscss|awstats)(/|$) Return
## process for 'special dirs' of Kloxo-MR
Match ^/(cp|error|webmail|__kloxo|kloxo|kloxononssl|cgi-bin)(/|$) Return
Match ^/(css|files|images|js)(/|$) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match /(.*)\?(.*) Rewrite /index.php?path=$1&$2
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
FastCGIserver {
FastCGIid = php_for_admin
ConnectTo = /opt/configs/php-fpm/sock/admin.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_apache
ConnectTo = /opt/configs/php-fpm/sock/apache.sock
Extension = php
}
CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/bin/php5-cgi:php
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/ruby:rb
CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
Binding {
BindingId = port_nonssl
Port = 80
#Interface = 0.0.0.0
MaxKeepAlive = 120
TimeForRequest = 480
MaxRequestSize = 102400
## not able more than 100MB; hiawatha-9.3-2+ able until 2GB
MaxUploadSize = 2000
}
Binding {
BindingId = port_ssl
Port = 443
#Interface = 0.0.0.0
MaxKeepAlive = 120
TimeForRequest = 480
MaxRequestSize = 102400
## not able more than 100MB; hiawatha-9.3-2+ able until 2GB
MaxUploadSize = 2000
SSLcertFile = /home/kloxo/httpd/ssl/eth0___localhost.pem
}
### 'default' config
set var_user = apache
Hostname = 0.0.0.0
WebsiteRoot = /home/kloxo/httpd/default
ErrorLogfile = /var/log/hiawatha/error.log
AccessLogfile = /dev/null
EnablePathInfo = yes
UseGZfile = yes
FollowSymlinks = no
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
#UserDirectory = public_html
#UserWebsites = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, findindexfile, permalink
#StartFile = index.php
### end - web of initial - do not remove/modify this line
### begin - web of initial - do not remove/modify this line
## MR - NOTE:
## add 'header("X-Hiawatha-Cache: 10");' to index.php
UrlToolkit {
ToolkitID = block_shellshock
Header * \(\)\s*\{ DenyAccess
}
UrlToolkit {
ToolkitID = findindexfile
Match ^([^?]*)/(\?.*)?$ Rewrite $1/index.php$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.php(\?.*)?$ Rewrite $1/index.html$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.html(\?.*)?$ Rewrite $1/index.shtml$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.shtml(\?.*)?$ Rewrite $1/index.htm$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.htm(\?.*)?$ Rewrite $1/index.pl$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.pl(\?.*)?$ Rewrite $1/index.py$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.py(\?.*)?$ Rewrite $1/index.cgi$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.cgi(\?.*)?$ Rewrite $1/index.rb$2 Continue
RequestURI isfile Return
Match ^([^?]*)/index\.rb(\?.*)?$ Rewrite $1/default.htm$2 Continue
RequestURI isfile Return
Match ^([^?]*)/default\.htm(\?.*)?$ Rewrite $1/Default.aspx$2 Continue
RequestURI isfile Return
Match ^([^?]*)/Default\.aspx(\?.*)?$ Rewrite $1/Default.asp$2 Continue
RequestURI isfile Return
Match ^([^?]*)/Default\.asp(\?.*)?$ Rewrite $1/$2 Continue
}
UrlToolkit {
ToolkitID = permalink
RequestURI exists Return
## process for 'special dirs' of Kloxo-MR
Match ^/(stats|awstats|awstatscss|awstats)(/|$) Return
## process for 'special dirs' of Kloxo-MR
Match ^/(cp|error|webmail|__kloxo|kloxo|kloxononssl|cgi-bin)(/|$) Return
Match ^/(css|files|images|js)(/|$) Return
Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
Match /(.*)\?(.*) Rewrite /index.php?path=$1&$2
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
FastCGIserver {
FastCGIid = php_for_admin
ConnectTo = /opt/configs/php-fpm/sock/admin.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_devel
ConnectTo = /opt/configs/php-fpm/sock/devel.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_anzip
ConnectTo = /opt/configs/php-fpm/sock/anzip.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_forfree
ConnectTo = /opt/configs/php-fpm/sock/forfree.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_henri
ConnectTo = /opt/configs/php-fpm/sock/henri.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_ifos
ConnectTo = /opt/configs/php-fpm/sock/ifos.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_jciyogya
ConnectTo = /opt/configs/php-fpm/sock/jciyogya.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_tsatir
ConnectTo = /opt/configs/php-fpm/sock/tsatir.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_spectra
ConnectTo = /opt/configs/php-fpm/sock/spectra.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_kadek
ConnectTo = /opt/configs/php-fpm/sock/kadek.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_nandin
ConnectTo = /opt/configs/php-fpm/sock/nandin.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_transit
ConnectTo = /opt/configs/php-fpm/sock/transit.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_riginta
ConnectTo = /opt/configs/php-fpm/sock/riginta.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_wulan
ConnectTo = /opt/configs/php-fpm/sock/wulan.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_backuper
ConnectTo = /opt/configs/php-fpm/sock/backuper.sock
Extension = php
}
FastCGIserver {
FastCGIid = php_for_apache
ConnectTo = /opt/configs/php-fpm/sock/apache.sock
Extension = php
}
CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/bin/php5-cgi:php
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/ruby:rb
CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
Binding {
BindingId = port_nonssl
Port = 80
#Interface = 0.0.0.0
MaxKeepAlive = 120
TimeForRequest = 480
MaxRequestSize = 102400
## not able more than 100MB; hiawatha-9.3-2+ able until 2GB
MaxUploadSize = 2000
}
Binding {
BindingId = port_ssl
Port = 443
#Interface = 0.0.0.0
MaxKeepAlive = 120
TimeForRequest = 480
MaxRequestSize = 102400
## not able more than 100MB; hiawatha-9.3-2+ able until 2GB
MaxUploadSize = 2000
SSLcertFile = /home/kloxo/httpd/ssl/eth0___localhost.pem
}
### 'default' config
set var_user = apache
Hostname = 0.0.0.0
WebsiteRoot = /home/kloxo/httpd/default
ErrorLogfile = /var/log/hiawatha/error.log
AccessLogfile = /dev/null
EnablePathInfo = yes
UseGZfile = yes
FollowSymlinks = no
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
IgnoreDotHiawatha = yes
#ReverseProxy ^/.* http://127.0.0.1:30080/ 90 keep-alive
ReverseProxy !\.(pl|cgi|py|rb|shmtl) http://127.0.0.1:30080/ 90 keep-alive
UseToolkit = block_shellshock, findindexfile
#StartFile = index.php
### end - web of initial - do not remove/modify this line
### begin - web of 'ra1.mratwork.com' - do not remove/modify this line
## MR - NOTE:
## add 'header("X-Hiawatha-Cache: 10");' to index.php
Directory {
Path = /home/kloxo/httpd/awstats/wwwroot/cgi-bin
PasswordFile = basic:/home/httpd/ra1.mratwork.com/__dirprotect/__stats
}
UrlToolkit {
ToolkitID = redirect_ra1_mratwork_com
#RequestURI exists Return
Match ^/kloxo(/|$) Redirect https://ra1.mratwork.com:7777/$1
Match ^/kloxononssl(/|$) Redirect http://ra1.mratwork.com:7778/$1
Match ^/webmail(/|$) Redirect http://webmail.ra1.mratwork.com/$1
Match ^/cp(/|$) Redirect http://cp.ra1.mratwork.com/$1
Match ^/stats(/|$) Redirect http://ra1.mratwork.com/awstats/awstats.pl
}
## cp for 'ra1.mratwork.com'
VirtualHost {
RequiredBinding = port_nonssl
set var_user = apache
UseGZfile = yes
FollowSymlinks = no
Hostname = cp.ra1.mratwork.com
WebsiteRoot = /home/kloxo/httpd/cp
EnablePathInfo = yes
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
ExecuteCGI = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, findindexfile, permalink
#StartFile = index.php
}
## webmail for 'ra1.mratwork.com'
VirtualHost {
RequiredBinding = port_nonssl
set var_user = apache
UseGZfile = yes
FollowSymlinks = no
Hostname = webmail.ra1.mratwork.com
WebsiteRoot = /home/kloxo/httpd/webmail
EnablePathInfo = yes
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
ExecuteCGI = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, findindexfile, permalink
#StartFile = index.php
}
## web for 'ra1.mratwork.com'
VirtualHost {
RequiredBinding = port_nonssl
set var_user = admin
UseGZfile = yes
FollowSymlinks = no
Hostname = ra1.mratwork.com, www.ra1.mratwork.com
WebsiteRoot = /home/admin/ra1.mratwork.com
EnablePathInfo = yes
Alias = /__kloxo:/home/admin/kloxoscript
WrapCGI = admin_wrapper
ScriptAlias = /cgi-bin:/home/admin/ra1.mratwork.com/cgi-bin
AccessLogfile = /home/httpd/ra1.mratwork.com/stats/ra1.mratwork.com-custom_log
ErrorLogfile = /home/httpd/ra1.mratwork.com/stats/ra1.mratwork.com-error_log
ScriptAlias = /awstats:/home/kloxo/httpd/awstats/wwwroot/cgi-bin
Alias = /awstatscss:/home/kloxo/httpd/awstats/wwwroot/css
Alias = /awstatsicons:/home/kloxo/httpd/awstats/wwwroot/icon
UserWebsites = yes
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
ExecuteCGI = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, redirect_ra1_mratwork_com, findindexfile, permalink
#StartFile = index.php
ShowIndex = no
}
## cp for 'ra1.mratwork.com'
VirtualHost {
RequiredBinding = port_ssl
SSLcertFile = /home/kloxo/httpd/ssl/eth0___localhost.pem
SecureURL = no
#MinSSLversion = TLS1.1
set var_user = apache
UseGZfile = yes
FollowSymlinks = no
Hostname = cp.ra1.mratwork.com
WebsiteRoot = /home/kloxo/httpd/cp
EnablePathInfo = yes
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
ExecuteCGI = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, findindexfile, permalink
#StartFile = index.php
}
## webmail for 'ra1.mratwork.com'
VirtualHost {
RequiredBinding = port_ssl
SSLcertFile = /home/kloxo/httpd/ssl/eth0___localhost.pem
SecureURL = no
#MinSSLversion = TLS1.1
set var_user = apache
UseGZfile = yes
FollowSymlinks = no
Hostname = webmail.ra1.mratwork.com
WebsiteRoot = /home/kloxo/httpd/webmail
EnablePathInfo = yes
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
ExecuteCGI = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, findindexfile, permalink
#StartFile = index.php
}
## web for 'ra1.mratwork.com'
VirtualHost {
RequiredBinding = port_ssl
SSLcertFile = /home/kloxo/httpd/ssl/eth0___localhost.pem
SecureURL = no
#MinSSLversion = TLS1.1
set var_user = admin
UseGZfile = yes
FollowSymlinks = no
Hostname = ra1.mratwork.com, www.ra1.mratwork.com
WebsiteRoot = /home/admin/ra1.mratwork.com
EnablePathInfo = yes
Alias = /__kloxo:/home/admin/kloxoscript
WrapCGI = admin_wrapper
ScriptAlias = /cgi-bin:/home/admin/ra1.mratwork.com/cgi-bin
AccessLogfile = /home/httpd/ra1.mratwork.com/stats/ra1.mratwork.com-custom_log
ErrorLogfile = /home/httpd/ra1.mratwork.com/stats/ra1.mratwork.com-error_log
ScriptAlias = /awstats:/home/kloxo/httpd/awstats/wwwroot/cgi-bin
Alias = /awstatscss:/home/kloxo/httpd/awstats/wwwroot/css
Alias = /awstatsicons:/home/kloxo/httpd/awstats/wwwroot/icon
UserWebsites = yes
TimeForCGI = 3600
Alias = /error:/home/kloxo/httpd/error
ErrorHandler = 401:/error/401.html
ErrorHandler = 403:/error/403.html
ErrorHandler = 404:/error/404.html
ErrorHandler = 501:/error/501.html
ErrorHandler = 503:/error/503.html
ExecuteCGI = yes
UseFastCGI = php_for_var_user
UseToolkit = block_shellshock, redirect_ra1_mratwork_com, findindexfile, permalink
#StartFile = index.php
ShowIndex = no
}
### end - web of 'ra1.mratwork.com' - do not remove/modify this line
## from https://www.hiawatha-webserver.org/weblog/77
UrlTookit {
ToolkitID = block_shellshock
Header * \(\)\s+\{ DenyAccess
}
## https://www.hiawatha-webserver.org/weblog/76
UrlTookit {
ToolkitID = block_bash_exploit
Header User-Agent \(\)\s*\{ DenyAccess
Header Referer \(\)\s*\{ DenyAccess
}
if (strcasecmp(value, "none") == 0) {
host->access_logfile = NULL;
return true;
} else {