I'm having a hard time trying to make nginx understand a spaced directory. I want it to serve the files located in a place like /media/Web Sites/site. Any tip? Already tried with quotes and backslash, but no help. Thanks!by GAZ082 - How to...
Thanks Maxim for your continuous support and patience, you are a god send. :) I did not put the root in the server because the password file is outside the /public directory, it's one level up, in the private. I want to only protect all the content inside documents, so i think is correct as you pointed out. So, basically, my config file does what i want to acomplish, but still getting a 4by GAZ082 - Nginx Mailing List - English
Awesome article. Been trying to tune it up a little, and now i'm getting a 403 in the directory documents, here is my full site.com config: server { listen 80; server_name www.site.com; #rewrite ^/(.*) http://site.com/$1 permanent; access_log /var/www/site.com/log/access.log; error_log /var/www/site.com/log/error.log; location / {by GAZ082 - Nginx Mailing List - English
Hi! I want to protect a directory and its content. The directory is located in the server in the dir: /var/www/site.com/public/documents/ So, i have: location /public/documents/ { root /var/www/site.com/; auth_basic "Access restricted."; auth_basic_user_file /private/pass; } The thing is, i've been toying with the location and rootby GAZ082 - Nginx Mailing List - English