Re: Alias or root directive

2016-11-03 Thread Francis Daly
On Thu, Nov 03, 2016 at 07:26:01PM +0100, Daniel wrote: Hi there, > As i understand the Documentation correct then my entry is correct: > > location /en/holidays/shared/images/ { > alias /mnt/nfs/uat/; > } Yes, that should work. So long as this location{} is the

Re: Alias or root directive

2016-11-03 Thread Daniel
> > If you check your error_log, you should see an indication of what file > nginx tried to serve, if it failed. > Yes it tries to open the doc_root to open that file and this is totally wrong of course because this file is placed on /mnt/nfs/uat/guide/germany/berlin.jpg /var/www/d1/current/we

Re: Alias or root directive

2016-11-03 Thread Daniel
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

Re: Alias or root directive

2016-11-03 Thread Francis Daly
On Thu, Nov 03, 2016 at 06:51:43PM +0100, Daniel wrote: Hi there, > > 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 respo

Re: Alias or root directive

2016-11-03 Thread Daniel
> >> 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

Re: Alias or root directive

2016-11-03 Thread Francis Daly
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 requ

Alias or root directive

2016-11-03 Thread Daniel
Hi there, i try to add a images folder but seems not work. Could someone tell me what i am doing wrong: location ~ ^/en/holidays/shared/images { root /mnt/nfs/uat/; } When i replace root with alias it has also no effect :-( Cheers Daniel ___