Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /var/www/rutorrent;
- index index.html index.php index.htm;
- error_page 403 = @denied;
- allow 10.0.0.0/28;
- allow 10.0.0.16/29;
- allow 10.0.0.24/29;
- deny all;
- location @denied {
- return 301 https://$host$request_uri;
- }
- location / {
- try_files $uri $uri/ =404;
- }
- location /rutorrent {
- auth_basic "Restricted";
- auth_basic_user_file /etc/nginx/.htpasswd;
- include /etc/nginx/conf.d/php;
- include /etc/nginx/conf.d/cache;
- }
- include /etc/nginx/sites-available/dload-loc;
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment