December 2018
Beginner
826 pages
22h 54m
English
There're a couple of problems with what we've done here.
The first is that we've created a very static service file, which we can only change by manipulating it directly. The second issue is that we've made a web server that, by default, will list the contents of the root of our server, which I highly doubt you want:
$ curl localhost:8000<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><title>Directory listing for /</title><body><h2>Directory listing for /</h2><hr><ul><li><a href="bin/">bin@</a><li><a href="boot/">boot/</a><li><a href="dev/">dev/</a><li><a href="etc/">etc/</a><li><a href="home/">home/</a><li><a href="lib/">lib@</a><li><a href="lib64/">lib64@</a><li><a href="media/">media/</a><li><a href="mnt/">mnt/</a> ...