Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufhm/9bb92997315ed9d9ca1e to your computer and use it in GitHub Desktop.
Save yusufhm/9bb92997315ed9d9ca1e to your computer and use it in GitHub Desktop.
rutorrent nginx server
server {
listen 80;
server_name some.server.name;
root /home/ubuntu/websites/rutorrent;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ =404;
allow 10.9.0.0/24;
allow 127.0.0.1/32;
deny all;
#auth_basic "Restricted";
#auth_basic_user_file /home/ubuntu/htpasswd/.rutorrent;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location /RPC2 {
include scgi_params;
scgi_pass 127.0.0.1:5000;
}
location /rutorrent {
#auth_basic "Restricted";
#auth_basic_user_file /home/ubuntu/htpasswd/.rutorrent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment