Skip to content

Instantly share code, notes, and snippets.

@sdurandeu
Created July 9, 2019 13:52
Show Gist options
  • Save sdurandeu/8f53dc4c537b6cd3edf9d863db5dd199 to your computer and use it in GitHub Desktop.
Save sdurandeu/8f53dc4c537b6cd3edf9d863db5dd199 to your computer and use it in GitHub Desktop.
Nginx Tips

Root Directive

For this directive:

location /.well-known {
  root /var/www/html;
  allow all;
}

If the URL is http://example.com/.well-known/a.html, it transforms to /var/www/html/.well-known/a.html, not to /var/www/html/a.html. Alternatively, see the alias directive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment