# Virtual hosts with Docker

**URL:** <https://forums.docker.com/t/virtual-hosts-with-docker/3937>\
**Category:** General\
**Tags:** docker, amazonwebservices\
**Created:** [October 20, 2015, 9:41am UTC](https://forums.docker.com/t/virtual-hosts-with-docker/3937 "2015-10-20T09:41:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiagomarini](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/thiagomarini/32/2464_2.png) [@thiagomarini](https://forums.docker.com/u/thiagomarini)\
**Post date:** [October 20, 2015, 9:41am UTC](https://forums.docker.com/t/virtual-hosts-with-docker/3937/1 "2015-10-20T09:41:11Z")

</div>

I was playing with Docker last week and decided to replicate a virtual host environment where different domains should point to different containers running in the host machine. The same way we can easily do with Apache or Nginx.

After struggling a bit to grasp Docker’s concepts and gotchas, I was able to do it and found the result to be pretty cool. Actually if I ever need to create such environment I’ll use Docker.

Ended up writing a post is about my experience playing with Docker, I hope it can be useful to someone who needs to create a virtual host environment using Docker.

[http://tech.mybuilder.com/virtual-hosts-with-docker/](http://tech.mybuilder.com/virtual-hosts-with-docker/)

---

<div class="post-metadata">

**Author:** ![peterbata](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/peterbata/32/42841_2.png) [@peterbata](https://forums.docker.com/u/peterbata)\
**Post date:** [November 19, 2015, 4:42pm UTC](https://forums.docker.com/t/virtual-hosts-with-docker/3937/2 "2015-11-19T16:42:49Z")

</div>

Thank you for sharing your Docker experience with us.
