As i understand the Documentation correct then my entry is correct:
location /en/holidays/shared/images/ {
alias /mnt/nfs/uat/;
}
Anyways, when i try to use root instead of alias it has same result.
Its getting ignored completely in the config.
> Am 03.11.2016 um 18:51 schrieb Daniel <daniel@linux-nerd.de>:
>
>>
>>> 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:
> domain.de//en/holidays/shared/images/guides/germany/berlin.jpg
>
>> 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
>
> cheers
>
> Daniel
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx