Alias or root directive

Daniel daniel at linux-nerd.de
Thu Nov 3 18:26:01 UTC 2016


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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161103/8566f921/attachment.html>


More information about the nginx mailing list