This article will teach you how to manage the installation of your Hiawatha web server in Ubuntu. You’ll be able to configure it, get support, and access its logs if necessary. The instructions follow a step-by-step guide that is broken down into three parts:
1) what you need; 2) installing; 3) configuring and using your new web server.

How to Install Hiawatha Web Server in Ubuntu

The deployment of online applications and services over the web is steadily rising as more consumers embrace cloud computing technology. Depending on the firewall settings and web server technology used to execute such web-based apps, they are frequently vulnerable to security flaws. While a firewall problem is relatively simple to resolve, a hacked web server is not.

This tutorial guides us through the installation and setup of Hiawatha on Ubuntu 20.04 and later since it is a trustworthy web server.

Features of the Hiawatha Web Server

Hiawatha’s compact and light size allows it to have the following current web server features:

  • To deal with DoS (Denial of Service) threats, Cross-Site Request Forgery (CSRF/XSRF), and Cross-Site Scripting, integrated TLS is used to restrict CGI runtime and prohibit problematic clients (XSS).
  • HTTP Authentication (Basic and Digest)
  • Checks webserver activity such as cumulative attacks, errors, client requests, and bandwidth utilization using the Hiawatha Monitoring Tool.
  • URL rewriting, SSL & TLS, reverse proxy, IPv6 support, and CGI/FastCGI are all supported.

It’s also worth mentioning that Hiawatha’s compact size and low weight make it perfect for embedded systems or older hardware, so you won’t have to worry about meeting current hardware performance requirements.

Hiawatha Web Server Installation on Ubuntu

To begin, make sure your Ubuntu system is up to date.

sudo apt-get update upgrade apt-get $ sudo apt-get upgrade

To build and install the Hiawatha webserver from source, you’ll need to install a few dependencies.

$ sudo apt install build-essential dpkg-dev cmake libxml2-dev libxslt1-dev zlib1g-dev Install Packages in UbuntuInstall Packages in Ubuntu

Once installed, use the wget command to obtain the Hiawatha webserver source tarball, then use the following instructions to build it.

$ wget https://www.hiawatha-webserver.org/files/hiawatha-11.1.tar.gz $ tar -xzf hiawatha-11.1.tar.gz $ cd hiawatha-11.1 $ mkdir build && cd build $ cmake .. $ sudo make install/strip Compile Hiawatha Webserver in UbuntuCompile Hiawatha Webserver in Ubuntu

After the installation is complete, use the following command to check that Hiawatha was successfully installed.

$ sudo hiawatha /usr/local/sbin hiawatha -k $ hiawatha -k $ hiawatha -k

The command (hiawatha -k) links to your Hiawatha installation’s primary configuration directory (/usr/local/etc/hiawatha).

In Ubuntu, look for Hiawatha Webserver.In Ubuntu, look for Hiawatha Webserver.

Finally, navigate to the following URL in your web browser to test the Hiawatha installation.

http://localhost OR http://Server-IP Hiawatha Web Server PageHiawatha Web Server Page

In Hiawatha Web Server, create a Virtual Host.

Open the Hiawatha main configuration file for virtual host support, which allows you to host several websites.

$ sudo nano /usr/local/etc/hiawatha/hiawatha.conf $ sudo nano /usr/local/etc/hiawatha/hiawatha.conf

To this file, add the following configuration:

VirtualHost { Hostname = linuxshelltips.lan.network WebsiteRoot = /usr/local/var/www/site_one StartFile = index.html AccessLogfile = /usr/local/var/www/site_one/log/access.log ErrorLogfile = /usr/local/var/www/site_one/log/error.log } In Hiawatha Web Server, create a Virtual Host.In Hiawatha Web Server, create a Virtual Host.

Make the site one and log folders, as well as an index.html file in the site one directory.

mkdir /usr/local/var/www/site one $ sudo mkdir /usr/local/var/www/site one $ sudo mkdir /usr/local/var/www/site one/log/ $ echo ‘Serving Website Using Hiawatha Web Server’ | sudo tee -a /usr/local/var/www/site one/index.html | sudo tee -a /usr/local/var/www/site one/index.html | sudo tee -a /usr/local/

The Hiawatha webserver should then be stopped and restarted.

$ cat /usr/local/var/run/hiawatha.pid $ sudo kill -15 PID $ sudo /usr/local/sbin/hiawatha Restart Hiawatha Webserver in UbuntuRestart Hiawatha Webserver in Ubuntu

Finally, use a web browser to view your VirtualHost’s hostname:

http://linuxshelltips.lan.network Check Virtual Host WebsiteCheck Virtual Host Website

Because of its small and safe footprints, Hiawatha is an intriguing addition to your web server resume/portfolio.