How to host multiple websites on one droplet? ngnix php fpm vestaCP

February 1, 2017 207 views
Deployment Development DigitalOcean DNS Nginx Ubuntu 16.04

Hello! i have tried following the post of creating VHost of ngnix but i am using vesta panel and ngnix.config directories are different but they seems to have a proper server block yet im not able to open different websites. please help!

1 Answer

@inboundRaj

VestaCP handles server block creating and setup when you add a new domain through the CP. You shouldn't have to physically modify the NGINX server blocks yourself and it's actually advised that you don't as VestaCP may overwrite changes that you made.

To add multiple domains, you'd simply login to VestaCP and create each new domain. VestaCP will do the setup for you, so all you'd need to do is upload your files to the directory that was created for the domain you just added.

You can check /home for the corresponding directories. They are separated by username, starting with admin. Each user you create through VestaCP will have their own home directory as well, so if you create mouser, then /home/myuser will be the home directory and domains will go under that directory:

/home/myuser/mydomain01.ext
/home/myuser/mydomain02.ext
/home/myuser/mydomain03.ext

ect.

Have another answer? Share your knowledge.