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

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!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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: