From time to time I need to run a temporary web server on my local operating system. In the most cases only for the some frontend development of small projects or some prove of concept. Installing nginx or Apache is no option.
I know the are lot of known fast up and down web development servers.
For example the build in web server of PHP.
php -S 127.0.0.1:8080 PHP 7.0.22-1~dotdeb+8.1 Development Server started at Mon Oct 23 17:49:40 2017 Listening on http://127.0.0.1:8080 Document root is / Press Ctrl-C to quit.
An other example is Pythons SimpleHTTPServer.
python -m SimpleHTTPServer 8000 Serving HTTP on 0.0.0.0 port 8000 ...
Here a small command to create a fast up and down development web server in an Apache Docker container.
docker run --rm -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd