Multiple vhosts on one and the same docker container
I'm trying to run two different domains on one and the same Docker container and port. The Docker container runs CentOS. docker-compose.yml looks like so: web: image: fab/centos ports: - "80:80" volumes: - ./src/httpd.conf:/etc/httpd/conf/httpd.conf - ./src:/var/www/html - ./src/hosts:/etc/hosts environment: - VIRTUAL_HOST=dummy.dev,tests.dev I also declared both .dev domain names inside of /etc/hosts on the host computer (OS X.) It's been a while since I configured virtual hosts. My understanding was that I just needed to declare them and that Apache would automatically serve the proper files