I'm trying to install libtorrent, rtorrent and rutorrent. I'm at the stage of installing rutorrent, and their wiki says I have to put this location block in my config file:
location /RPC2 {
include scgi_params;
scgi_pass unix:/tmp/rpc.sock;
}
This is my entire config block for this server:
server {
listen 80;
server_name localhost;
access_log /home/whitey/sites/localhost/logs/access.log;
error_log /home/whitey/sites/localhost/logs/error.log;
root /home/whitey/sites/localhost/htdocs;
index index.html index.php /index.php;
location / {
}
location ~ \.php$ {
fastcgi_pass unix:/tmp/phpfpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires max;
}
location /RPC2 {
include scgi_params;
scgi_pass unix:/tmp/rpc.sock;
}
}
When I rebooted nginx for the new config to take effect, I got this error:
$ sudo /etc/init.d/nginx start
Starting nginx: nginx: [emerg] unknown directive "scgi_pass" in /etc/nginx/conf.d/localhost.conf:24
nginx: configuration file /etc/nginx/nginx.conf test failed
Now, the SCGI module for nginx has been built by default since version 0.8.42, this is the output from nginx -v: nginx version: nginx/1.1.19
Any help is appreciated, thanks.
find /etc/nginx/ -name scgi_params? – quanta Aug 13 '12 at 15:07/etc/nginx/scgi_params– James Linton Aug 13 '12 at 15:50