This is what was done to solve the problem. I am providing the two relevant
location blocks.
# protect the "secure" folder ( /var/www/html/secure )
location /secure/ {
auth_basic "Restricted";
auth_basic_user_file /var/www/protected/.htpasswd;
}
# T
I was able to get partway through the problem with some help. The basic
problem was that I had been missing a root directive in one of the location
blocks. I was advised to (and did) move the root statement up to the server
block and comment it out from any sub-blocks. I have found that this now
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.
I created an .htpasswd file using printf
I was missing an update in the config file, so your guidance helped.
Thanks.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236318,236349#msg-236349
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
OK, Steve - thanks for your help.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236254,236317#msg-236317
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
I followed the article "How to Install Linux, nginx, MySQL, PHP (LEMP) stack
on CentOS 6"
(https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6)
and could see the nginx default page displayed. After I worked through the
changes to configs, etc.
Thanks for catching that type, GreenGecko.
I was able to get nginx installed, but at this point it won't start (bind,
that is).
Is this problem familiar to anyone?
>>> the end of the installation...
Installed:
nginx.x86_64 0:1.2.7-1.el6.ngx
Complete!
>>> trying to start nginx...
[root@01 ~]# /
It looks like PHP-FPM comes with PHP 5.3.3, so I should have it already for
use with nginx. Thanks.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236254,236268#msg-236268
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailm
Here's the article:
https://www.digitalocean.com/community/articles/how-to-configure-nginx-as-a-front-end-proxy-for-apache
I agree that if I could do it all with one web server, it would be
simpler/cleaner. I'm just not sure based on what is in this article that
nginx will be fine alone
- "ngin
Installing as root allowed the method under (3) to work. Still have a
problem starting nginx, but I'll see if I can work thru that. I would
appreciate comments on item (1) though from anyone's experience.
Thanks.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236254,236263#msg-236263
Thanks for the suggestion, Steve. I was working from that angle before
based on advice from a person at my hosting company and had used the nginx
repo. I am addressing three points in response. Any suggestions/thoughts
from you and/or others are appreciated.
(1) Reason for nginx and apache:
The
11 matches
Mail list logo