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.

Software Engineer @ CodeGen International, CSE Graduate @ University of Moratuwa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store