Dasun Pubudumal
Sep 4, 2018 · 1 min read

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.

Dasun Pubudumal

Written by

CSE Undergraduate @ University of Moratuwa, Software Engineering Intern @ DirectFN.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade