Page 1 of 1
Where to change the root directory in nginx
Posted: Mon Nov 16, 2015 1:01 am
by andresgl
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!!
Re: Where to change the root directory in nginx
Posted: Mon Nov 16, 2015 6:02 am
by skurudo
Look in /home/your-user/conf/web/nginx.conf
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
Posted: Tue Nov 17, 2015 1:35 am
by andresgl
skurudo wrote:Look in /home/your-user/conf/web/nginx.conf
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;
Yes, it's worked!!
Thanks a lot!! :D
Re: Where to change the root directory in nginx
Posted: Tue Nov 17, 2015 6:26 am
by skurudo