how to change server root in nginx? -


default server root in nginx /usr/share/nginx/html. how change /home/username/html? i've tried add configuration in site-available didn't work!

server {         listen   80;         root /home/username/html;         index index.html index.htm;         server_name mj.dev; } 

try restart nginx server!

    nginx -s restart 

if still work check weather load right configuration file.

use

    nginx -t 

to check syntax of configuration file


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

collision detection - C++ library for mesh to mesh intersection: what is available? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -