Alias or root directive

Francis Daly francis at
Thu Nov 3 17:46:04 UTC 2016

On Thu, Nov 03, 2016 at 03:12:39PM +0100, Daniel wrote:

Hi there,

> i try to add a images folder but seems not work.
> Could someone tell me what i am doing wrong:

What one example http request do you want to make?

What file on your filesystem do you want nginx to serve in response to
that request?

>         location ~ ^/en/holidays/shared/images {
>                 root /mnt/nfs/uat/;
>         }
> When i replace root with alias it has also no effect :-(

"alias" in a regex location has special requirements.


Francis Daly        francis at

More information about the nginx mailing list