all notes written for ubuntu 16.04 LTS
mv - rename and/or move files adduser - add user which - path to bin
- nginx lives at
/etc/nginx
- roughly speaking, the configs in
./sites-enabled
define sites that are being served ./sites-available
is a sort of staging area- commonly(?) you enable a config that's in
./sites-available
by symlinking it from./sites-enabled
:sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled
- actual site files being served are generally stored in
/var/www/html
- nginx must reload configurations for changes to
./sites-enabled
to take effect:sudo nginx -s reload