Good article.
As an alternative approach, rather than getting your local file system dirty with Apache installations (and /etc/hosts
changes), you can use a Docker image from Docker Hub (https://hub.docker.com/_/httpd/) mapping its port 80
to 8090
of your local machine. The image will run as a service (thus eventually your Apache web server) until you stop it manually. Hence, upon production, you can deploy your image to a docker container directly.
Some important Docker commands can be found from here: https://gist.github.com/dasunpubudumal/d4d5bf4f5804650053a219dd6e1e2964.