Francis Daly francis at
Tue Dec 10 22:40:48 UTC 2013

On Tue, Dec 10, 2013 at 10:17:25PM +0000, Matthew Ngaha wrote:
> > On Mon, Dec 09, 2013 at 05:03:55PM +0000, Matthew Ngaha wrote:

Hi there,

> >> http {
> >>    server {
> >>        server_name localhost;
> >>        root /var/www/;
> >>         location /admin/ {
> >>         alias /var/www/locked/;
> >>       }
> >>    }
> >> }

> The problem i've been having after looking in the error logs,is that
> it's still trying to find /admin/ in the default html root.

That suggests that the configuration you are editing, and the
configuration that nginx is using, are not the same.

You can test by adding the following line:

    location = /test/ {return 200 "This is a test\n";}

just after the server_name line and reloading nginx.

If "curl -i http://localhost/test/" does not show you "This is a test",
then that's your problem.

After you fix that, the rest should become clear.

> Also i don't know how this message will turn out, i only recieve daily
> digests so i had to reply to the digest and not individual the mail
> itself. Is there a way to stop recieving nginx mail via digests and
> just recieve each individual mail?

Start here:



Francis Daly        francis at

More information about the nginx mailing list