How to install Hiawatha Webserver in CentOS 7

To Install Hiawatha Webserver On CentOS 7

Hiawatha is a lightweight secured webserver that prevents common web attacks like cross-site scripting(xss), sql injection, and CSRF. Installation of Hiawatha webserver is explained in detail.

Features

  • Speed.
  • Supports URL rewriting.
  • Reverse Proxy.
  • It Supports IPV6
  • Access control.
  • Reverse Proxy.

To install Hiawatha Webserver

Run the following command to download a repo before installing Hiwatha.

[root@linuxhelp1 ~]# wget http://anku.ecualinux.com/7/x86_64/anku-release-8-1.noarch.rpm
--2016-07-12 13:47:26--  http://anku.ecualinux.com/7/x86_64/anku-release-8-1.noarch.rpm
Resolving anku.ecualinux.com (anku.ecualinux.com)... 174.142.80.39
Connecting to anku.ecualinux.com (anku.ecualinux.com)|174.142.80.39|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3166 (3.1K) [application/x-rpm]
Saving to: ‘ anku-release-8-1.noarch.rpm’ 

100%[==============================================================================> ] 3,166       --.-K/s   in 0.002s  

2016-07-12 13:47:27 (1.62 MB/s) - ‘ anku-release-8-1.noarch.rpm’  saved [3166/3166]

Utilise the following command to install the rpm file.

[root@linuxhelp1 ~]# rpm -ivh anku-release-8-1.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:anku-release-8-1                 ################################# [100%]

utilise the following command to install Hiawatha.

[root@linuxhelp1 ~]# yum --enablerepo=anku install hiawatha -y
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Resolving Dependencies
-->  Running transaction check
--->  Package hiawatha.x86_64 0:10.0-ecualinux.2.el7.centos will be installed
.
.
.
Installed:
  hiawatha.x86_64 0:10.0-ecualinux.2.el7.centos                                                                         

Complete!

To Launch Hiawatha

Once the installation is completed, start the server by using the following command.

[root@linuxhelp1 ~]# service hiawatha start
Starting webserver: Hiawatha

Open the web browser and navigate to http://< IP_address>

FAQ
Q
Is it possible to run Hiawatha as a service under Windows?
A
Yes, that is possible since version 6.9. The Windows package of Hiawatha contains a Cygwin tool to run Hiawatha as a Windows service. Read the included Installation.txt for more instructions.
Q
What is the essential usage and purpose of Hiawatha?
A
It prevents common web attacks like cross-site scripting(xss), sql injection, and CSRF.
Q
Does Hiawatha support GZip content encoding?
A
Yes. Hiawatha automatically generates and serves GZip-encoded versions of static text-based files such as HTML, XML, CSS, and JavaScript, according to the requesting browser's accepted encodings.
Q
How can I specify multiple start files for a virtual host?
A
No. If you want to use a different startfile for a directory, use the StartFile option in a .hiawatha file in that directory.
Q
How can Hiawatha show the content of a directory?
A
Yes, use the following option for the VirtualHost section or in a .hiawatha configuration file inside that directory:
"ShowIndex = yes"