server {
    listen       5080;
    server_name  localhost;
    root /usr/share/webapps/rutorrent;
    location / {
        index  index.html index.htm;
    }
    location ~ \.php$ {
        fastcgi_pass   unix:/run/php-fpm/php-fpm.sock;
        fastcgi_index  index.php;
        include        fastcgi.conf;
    }
    location /RPC2 {
        include scgi_params;
        scgi_pass localhost:5050;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}