Files
rtinst/nginxsitedl
T
2014-09-27 18:50:25 +01:00

10 lines
294 B
Plaintext

location ~ ^/download/(.+?)(/.*)?$ {
alias /home/$1$2;
set $user $1;
if ($remote_user = '') { break; }
if ($user != $remote_user) { return 403; }
auth_basic "Restricted";
auth_basic_user_file /var/www/rutorrent/.htpasswd;
index index.html index.htm; autoindex on;
}