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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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