Understanding the difference between the root and alias directives in Nginx
Nginx is a web server that is good for serving as a reverse proxy server, load balancer or HTTP cache.
One of the most important task in configuring Nginx to proxy HTTP / HTTPS traffic is telling Nginx where to look for files that it needs for serving HTTP / HTTPS requests.
This posts discusses the root
and alias
directives that we can use in Nginx configuration files for mapping a url from a HTTP request to a file on the server file system.
Follow us