We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Where to change the root directory in nginx
Where to change the root directory in nginx
Hello,
I'm testing Vesta and looks amazing!! :D
Also i'm testing the Nginx server and I would like to know where I can change the root directory of a domain that I already added it. I can not find the file 'sites-enabled' file.
Hope someone can help me!
Thanks a lot!!
I'm testing Vesta and looks amazing!! :D
Also i'm testing the Nginx server and I would like to know where I can change the root directory of a domain that I already added it. I can not find the file 'sites-enabled' file.
Hope someone can help me!
Thanks a lot!!
Re: Where to change the root directory in nginx
Look in /home/your-user/conf/web/nginx.conf
Something like this
Something like this
Code: Select all
location / {
proxy_pass http://15.23.40.46:8080;
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp$
root /home/your-user/web/your-domain.ru/public_html;
Re: Where to change the root directory in nginx
Yes, it's worked!!skurudo wrote:Look in /home/your-user/conf/web/nginx.conf
Something like thisCode: Select all
location / { proxy_pass http://15.23.40.46:8080; location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp$ root /home/your-user/web/your-domain.ru/public_html;
Thanks a lot!! :D
Re: Where to change the root directory in nginx
Glad to help you ;-)andresgl wrote:Yes, it's worked!! Thanks a lot!! :D
Config and log locations
https://vestacp.com/docs/#config-log-lo ... ian-ubuntu
https://vestacp.com/docs/#config-log-lo ... hel-centos