<div dir="ltr">Hi Francis,<div><br></div><div>Can you post your full config pls?</div><div><br></div><div>Thanks,</div><div><br></div><div>Andrew</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 10:50 PM, Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Aug 27, 2016 at 10:38:27AM +0200, İhsan Doğan wrote:<br>
<br>
Hi there,<br>
<br>
> I've defined a location alias in my nginx.conf:<br>
<br>
>       location        /foo/ {<br>
>                       alias /var/www/foo/;<br>
>       }<br>
<br>
> Even the directory /var/www/foo exists, Nginx is returns a 404. As I<br>
> understand, the configuration is right, but I can't see what's wrong.<br>
<br>
It works for me.<br>
<br>
What specific test request do you make?<br>
<br>
What file on the filesystem do you want nginx to return?<br>
<br>
What does your error.log say about the 404 response?<br>
<br>
(Is there another location{} block that handles your request, instead<br>
of the one you showed here?)<br>
<br>
Cheers,<br>
<br>
        f<br>
<span class="HOEnZb"><font color="#888888">--<br>
Francis Daly        <a href="mailto:francis@daoine.org">francis@daoine.org</a><br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a></font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Otter Networks UG<br><a href="http://otternetworks.de" target="_blank">http://otternetworks.de</a><br>fon: +49 30 54 88 5197<br>Gotenstraße 17<br>10829 Berlin</div></div>
</div>