Last active
August 29, 2015 14:10
-
-
Save yusufhm/9bb92997315ed9d9ca1e to your computer and use it in GitHub Desktop.
rutorrent nginx server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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