Linux: NGINX: Setup alias

PHOTO EMBED

Mon Aug 29 2022 13:58:21 GMT+0000 (UTC)

Saved by @marcopinero #bash

#changes in /etc/nginx/sites-available/default

server {
  server_name example.com;
  root /path/to/root;
  location / {
    # blah blah
  }
  location /demo {
    alias /path/to/root/production/folder/here;
  }
}
content_copyCOPY