Welcome! Log In Create A New Profile

Advanced

Re: Alias or root directive

Francis Daly
November 03, 2016 02:30PM
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 one that is
used for the request that you make.

If you have something like "location ~ jpg" as well, then *that* would
be used instead of this one.

http://nginx.org/r/location

> Anyways, when i try to use root instead of alias it has same result.
> Its getting ignored completely in the config.

I'd suggest to check the logs then, to see what is happening instead.

And ensure that you are getting nginx to use the new config, each time
you change it. The logs should show that that has happened too.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Alias or root directive

Daniel November 03, 2016 10:14AM

Re: Alias or root directive

Francis Daly November 03, 2016 01:48PM

Re: Alias or root directive

Daniel November 03, 2016 01:52PM

Re: Alias or root directive

Francis Daly November 03, 2016 02:26PM

Re: Alias or root directive

Daniel November 03, 2016 02:30PM

Re: Alias or root directive

Daniel November 03, 2016 02:28PM

Re: Alias or root directive

Francis Daly November 03, 2016 02:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready