server listen 80 server_name example com root var www location RPC2 in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server{
listen 80;
server_name example.com;
root /var/www;
location /RPC2 {
include scgi_params;
scgi_pass 127.0.0.1:38749;
}
location ~ \.php {
try_files $uri $uri/ =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# location /rutorrent {
# alias /var/www/rutorrent;
# index index.php;
# }
}