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
Post a Comment