fideloper / docker-nginx-php

An Ubuntu, Nginx and PHP stack Built in Docker
361 stars 142 forks source link

How to run a virtual host #5

Closed geshan closed 10 years ago

geshan commented 10 years ago

How do I run a virtual host like test.dev. I made a test.dev file changing the folder to /var/www/test.dev and added the test.dev in my hosts file and to the dockerfile with ADD. But I cannot run it. How do I do this?

fideloper commented 10 years ago

Do you mean how do you configure Nginx for multiple sites? Did you edit https://github.com/fideloper/docker-nginx-php/blob/master/build/default to match the new DocumentRoot and servername before building the container?

root /var/www/test.dev;

server_name localhost test.dev;