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; } # This is required to protect individual files inside the directory locatioby mottwsc - Nginx Mailing List - English
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 works as it should to protect the /secure folder when trying to view html files, but it does not whenby mottwsc - Nginx Mailing List - English
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 "MYUSER:$(openssl passwd -1 MYPASSWORD)\n" >> .htpasswd and put that into the /varby mottwsc - Nginx Mailing List - English
I was missing an update in the config file, so your guidance helped. Thanks.by mottwsc - Nginx Mailing List - English
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. and tried to display info.php (phpinfo), I get the message 'no input file specified'. I geby mottwsc - Nginx Mailing List - English
OK, Steve - thanks for your help.by mottwsc - Nginx Mailing List - English
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... # /etc/init.d/nginx start Starting nginx: nginx: bind() to 0.0.0.0:80 failed (98:by mottwsc - Nginx Mailing List - English
It looks like PHP-FPM comes with PHP 5.3.3, so I should have it already for use with nginx. Thanks.by mottwsc - Nginx Mailing List - English
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 - "nginx (great at static files) needs the help of php-fpm or similar modules for dynamic contentby mottwsc - Nginx Mailing List - English
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.by mottwsc - Nginx Mailing List - English
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 reason I am planning to use nginx on the front end and apache on the back end (instead of nginx fby mottwsc - Nginx Mailing List - English
I have set up a virtual server with a LAMP stack (Centos 6.3) and am now trying to install nginx to use as a proxy server. I have been told to download from sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm and have done so prior to trying to install nginx. However, something was wrong with this because when I tried to install nginx (sudo yum install nginx), tby mottwsc - Nginx Mailing List - English
BACKGROUND: I will be setting up two servers on a hosted platform. I plan to use NGINX as a front-end proxy for APACHE. Let's call the two servers App Server 1 and App Server 2. I also have a server on another hosting platform and that has my home page. Let's call that OUTSIDE Server. App Server 1 and App Server 2 will house the application. When the user clicks on the sign in button on the OUTSby mottwsc - Nginx Mailing List - English
At this point for the beta, I'm using PHP - could switch to something else like Lua for a future production version. My best course for right now might be to use nginx on the front end and apache on the back end; could extend nginx to OpenResty, and could possibly use Varnish as well. Anyone with experience in these areas, please comment. Thanks.by mottwsc - Nginx Mailing List - English
We are building a web based game on a LAMP stack, but it could just as well be on a LEMP stack. The game does not involve a lot of typical game stuff - character movement, etc. - like in most video games. Instead, it involves some video clips and some html pages, with updates to content and chat supplied primarily using Ajax and jQuery. You can think of it like the app 'Are you smarter than a 5by mottwsc - Nginx Mailing List - English