Report this

What is the reason for this report?

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

Posted on February 1, 2017

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!



This textbox defaults to using Markdown to format your 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.

@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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.