Over the last few years, web servers have changed. Where early web applications have been deployed behind some sort of web server application such as Apache Tomcat (http://tomcat.apache.org/), IIS (https://www.iis.net/), and nginx (https://www.nginx.com/), it is now more common to embed the serving part into the application as well. Not only is this easier on the Ops people, it also allows developers to have tight control over the entire application. Let's see how we can get started and set up a basic static web server.
Setting up a web server
Getting ready
Let's set up a Rust binary project using cargo new static-web. Since we are going to serve stuff on local port 8081, make sure that the port is accessible as...