# Hiawatha main configuration file
#
# GENERAL SETTINGS
#
ServerId = 33:33
ConnectionsTotal = 100
ConnectionsPerIP = 10
SystemLogfile = /usr/local/var/log/hiawatha/system.log
GarbageLogfile = /usr/local/var/log/hiawatha/garbage.log
# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
MaxRequestSize = 15360
Interface = 10.155.20.74
}
#
Binding {
Port = 443
MaxRequestSize = 15360
Interface = 10.155.20.74
ServerKey = /usr/local/etc/hiawatha/webui_serverkey.pem
UseSSL = yes
}
#
# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications.
#
CGIextension = cgi
TimeForCGI = 100
CGIhandler = /opt/ah/bin/ah_capture:php
# FastCGI
#
FastCGIserver {
FastCGIid = PHP5
ConnectTo = 127.0.0.1:2008
Extension = php5
}
# DEFAULT WEBSITE
#
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/var/www/hiawatha
StartFile = index.html
ExecuteCGI = yes
AccessLogfile = /usr/local/var/log/hiawatha/access.log
ErrorLogfile = /usr/local/var/log/hiawatha/error.log
# VIRTUAL HOSTS
# Use a VirtualHost section to declare the websites you want to host.
#
VirtualHost {
Hostname = 10.155.20.74
WebsiteRoot = /usr/local/var/www/hiawatha/webui
StartFile = index.php5
FastCGI = PHP5
}
padding = set_padding(fcgi_buffer, false);
if (send_directly(fcgi_buffer->sock, (char*)fcgi_buffer->data, 8 ) == -1) {
return -1;
} else if (send_directly(fcgi_buffer->sock, buffer, size) == -1) {
return -1;
}
padding = set_padding(fcgi_buffer, false);
if (send_directly(fcgi_buffer->sock, (char*)fcgi_buffer->data, 8 ) == -1) {
return -1;
} else if (send_directly(fcgi_buffer->sock, buffer, FCGI_BUFFER_SIZE) == -1) {
return -1;
}