Yes, it is no problem now , opening fast with hiawatha 9.7.
curl -i http://141.138.201.249
HTTP/1.1 200 OK
Date: Wed, 20 Aug 2014 16:25:34 GMT
Server: Hiawatha v9.7
Connection: keep-alive
X-Empty:
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Hiawatha-Cache: 300
X-Frame-Options: sameorigin
Content-Type: text/html; charset=utf-8
Content-Language: en
Content-Length: 136
X-Powered-By: Banshee PHP framework v3.4
But my hiawatha has no cache ?
curl -i se.bhzhu203.com
HTTP/1.1 200 OK
Date: Wed, 20 Aug 2014 16:45:10 GMT
Server: Hiawatha v9.6
Connection: keep-alive
Content-Type: text/html
Last-Modified: Sun, 01 Jun 2014 08:03:18 GMT
Content-Length: 1566
What is wrong in my hiawatha.conf?
# Hiawatha main configuration file
#
# GENERAL SETTINGS
#
ServerId = www
ConnectionsTotal = 950
ConnectionsPerIP = 80
SystemLogfile = /home/log/hiawatha/system.log
GarbageLogfile = /home/log/hiawatha/garbage.log
# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
Interface = 107.161.xxxxxx
# MaxKeepAlive = 30
# TimeForRequest = 3,20
}
Binding {
Port = 80
Interface = 107.161.19.121
# MaxKeepAlive = 30
# TimeForRequest = 3,20
}
#
#Binding {
# Port = 443
# Interface = ::1
# MaxKeepAlive = 30
# TimeForRequest = 3,20
# SSLcertFile = hiawatha.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 = PHP5
# ConnectTo = 172.17.0.2:9000
# 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
#
#UrlToolkit {
# ToolkitID = banshee
# RequestURI isfile Return
# Match ^/(css|files|images|js|slimstat)($|/) Return
# Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
# Match .*\?(.*) Rewrite /index.php?$1
# Match .* Rewrite /index.php
#}
# 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 = 127.0.0.1
WebsiteRoot = /var/www/hiawatha
StartFile = index.html
AccessLogfile = /home/log/hiawatha/access.log
ErrorLogfile = /home/log/hiawatha/error.log
#ErrorHandler = 404:/error.cgi
# VIRTUAL HOSTS
# Use a VirtualHost section to declare the websites you want to host.
#
#VirtualHost {
# Hostname = www.my-domain.com
# WebsiteRoot = /var/www/my-domain/public
# StartFile = index.php
# AccessLogfile = /var/www/my-domain/log/access.log
# ErrorLogfile = /var/www/my-domain/log/error.log
# TimeForCGI = 5
# UseFastCGI = PHP5
# UseToolkit = banshee
#}
# DIRECTORY SETTINGS
# You can specify some settings per directory.
#
#Directory {
# Path = /home/baduser
# ExecuteCGI = no
# UploadSpeed = 10,2
#}
CacheRProxyExtensions = css,gif,html,jpg,js,png,txt
VirtualHost {
Hostname = buy.plkq.net,bbs.datangjie.com,bbs.bhzhu203.com
WebsiteRoot = /var/www/hiawatha
# ReverseProxy .* http://172.17.0.7:8080/ 95 keep-alive
ReverseProxy .* http://127.0.0.1:884/ 95 keep-alive
#AccessLogfile = /home/log/hiawatha/main-access.log
ErrorLogfile = /home/log/hiawatha/main-error.log
#ErrorHandler = 504:/504.html
#ErrorHandler = 508:/508.html
#TimeForCGI = 30
}