Question

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

Posted February 1, 2017 2.3k views
Nginx DigitalOcean DNS Deployment Ubuntu 16.04 Development

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

Submit an Answer