Configure nginx to use virtual hosts, point each virtual hosts to corresponding folders on your /var/www/ directory.
Dec 11, 2016
2
Level 7
How to host multiple project in 1 domain name using digitalOcean LEMP stack
I followed this guide.
http://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/ and got it working. now what I want to achieve is to have a url structure like this.
- 128.199.xxx.xxx/ ->normal index.html
- 128.199.xxx.xxx/project1 -> laravel project
- 128.199.xxx.xxx/project2 -> laravel project
and my folder structure will be like this.
- var/www/index.html
- var/www/project1/
- var/www/project2/
Level 8
1 like
Please or to participate in this conversation.