Alias or root directive

Daniel daniel at
Thu Nov 3 17:51:43 UTC 2016

>> 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?

I wanted to load such kind of URL:

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

on /mnt/nfs/uat/ are the folders like guides/germany/

>>        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.

I also tried with root instead of alias and i have the same behave



More information about the nginx mailing list