Location Alias not working
Andrew Holway
andrew.holway at otternetworks.de
Sat Aug 27 21:18:04 UTC 2016
Hi Francis,
Can you post your full config pls?
Thanks,
Andrew
On Sat, Aug 27, 2016 at 10:50 PM, Francis Daly <francis at daoine.org> wrote:
> On Sat, Aug 27, 2016 at 10:38:27AM +0200, İhsan Doğan wrote:
>
> Hi there,
>
> > I've defined a location alias in my nginx.conf:
>
> > location /foo/ {
> > alias /var/www/foo/;
> > }
>
> > Even the directory /var/www/foo exists, Nginx is returns a 404. As I
> > understand, the configuration is right, but I can't see what's wrong.
>
> It works for me.
>
> What specific test request do you make?
>
> What file on the filesystem do you want nginx to return?
>
> What does your error.log say about the 404 response?
>
> (Is there another location{} block that handles your request, instead
> of the one you showed here?)
>
> Cheers,
>
> f
> --
> Francis Daly francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
--
Otter Networks UG
http://otternetworks.de
fon: +49 30 54 88 5197
Gotenstraße 17
10829 Berlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160827/da4fd13b/attachment.html>
More information about the nginx
mailing list