Skip to content

Instantly share code, notes, and snippets.

@ihgrant
Last active May 18, 2017 02:00
Show Gist options
  • Save ihgrant/8898a9107cc964a65ab18f1536e00b57 to your computer and use it in GitHub Desktop.
Save ihgrant/8898a9107cc964a65ab18f1536e00b57 to your computer and use it in GitHub Desktop.
linode notes

all notes written for ubuntu 16.04 LTS

mv - rename and/or move files adduser - add user which - path to bin

nginx

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment