xExekut3x

rutorrent-nginx

May 26th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. server {
  2. listen 80;
  3. root /var/www/rutorrent;
  4. index index.html index.php index.htm;
  5. error_page 403 = @denied;
  6. allow 10.0.0.0/28;
  7. allow 10.0.0.16/29;
  8. allow 10.0.0.24/29;
  9. deny all;
  10. location @denied {
  11. return 301 https://$host$request_uri;
  12. }
  13. location / {
  14. try_files $uri $uri/ =404;
  15. }
  16. location /rutorrent {
  17. auth_basic "Restricted";
  18. auth_basic_user_file /etc/nginx/.htpasswd;
  19. include /etc/nginx/conf.d/php;
  20. include /etc/nginx/conf.d/cache;
  21. }
  22. include /etc/nginx/sites-available/dload-loc;
  23. location ~ /\.ht {
  24. deny all;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment