By inboundRaj
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.