Welcome! Log In Create A New Profile

Advanced

Re: securing access to a folder - 404 error

Francis Daly
March 18, 2013 05:52PM
On Sun, Mar 10, 2013 at 04:07:23PM -0400, mottwsc wrote:

Hi there,

> I'm trying to secure a directory on a CentOS 6.3 64 server running NGINX
> 1.2.7. I think I've set this up correctly, but it keeps giving me a 404 Not
> Found error when I try to access a file in that folder in the browser using
> domainName/secure/hello2.html.

A 404 error from nginx for a local file should usually show something in
the error log. Is there anything there?

> I even moved the .htpasswd
> file into the /secure/ folder and changed the config file to reflect that
> change (just to see what would happen), but I still get the 404 Not Found
> error.
>
> Can anyone tell me what I'm missing?

I get 401 if I don't give the right credentials, and 403 if the passwd
file is missing or if the requested file is not readable. But the only
way I get 404 is if the file requested does not exist.

What "root" directive is effective in this location{}?

f
--
Francis Daly francis@daoine.org

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

securing access to a folder - 404 error

mottwsc March 10, 2013 04:07PM

Re: securing access to a folder - 404 error

Francis Daly March 18, 2013 05:52PM

Re: securing access to a folder - 404 error

mottwsc March 18, 2013 08:10PM

Re: securing access to a folder - 404 error

Francis Daly March 19, 2013 05:12AM

SOLVED: securing access to a folder - 404 error

mottwsc April 04, 2013 08:54AM

Re: SOLVED: securing access to a folder - 404 error

Shohreh November 21, 2013 09:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
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