Public Repository

Last pushed: 4 months ago
Short Description
test container with apache on ubuntu and 2 virtual hosts (self-educational purpose)
Full Description

How to use:

  1. Place index.html files for virtual hosts in folders domainname1.com/index.html, domainname2.com/index.html into same folder with Dockerfile
  2. Edit ENV variables in Dockerfile, should be the same names as folders (domainname1.com, domainname2.com)
  3. Build container:
    sudo docker build -t dexnov17/test .
  4. Run container:
    sudo docker run --rm -ti -p 8088:80 dexnov17/test /usr/sbin/apache2ctl -D FOREGROUND
  5. Test: http://domainname1.com:8088, http://domainname2.com:8088. Make sure names are resolved properly !
Docker Pull Command
Owner
dexnov17

Comments (0)