You are not logged in.
Hi guys,
I need to set up password protected access to different pdf files in one directory. In Apache with .htaccess it was easy:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /somehere/else/.htpasswd
AuthGroupFile /dev/null
<Files 2013_01.pdf>
require valid-user
</Files>
<Files 2013_02.pdf>
require valid-user
</Files>
But I don't know how to do it in nginx. I need defferent password for every file which I create in directory (/srv/http/pdfs/2013_01.pdf; /srv/http/2013_02.pdf and so on). I've tried auth_basic setup but when I enter password for the first file I don't need to do it for the next one. So it is only a partial solution.
Offline
I don't know how useful it will be but perhaps: This will help?
Offline
Thx but it's wasn't very useful. When I try to convert my example I get "Could not convert the config". I need a hand from some kind of an nginx wiseman
Offline