Code:
[16.08.2012 04:31:15] Bad response from server: (502 [error,list]) <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.2.3</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
So PHP works, because my test page works fine, and the RPC thing seems to have stopped causing issues but everytime I load the ruTorrent page it throws that up at me for some reason?
Additionally I seem to be able to add torrents via the web interface but they don't show up on the list, but do show on the console rtorrent part.
nginx Config
Code:
user http torrent;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 10 10;
gzip on;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx_access.log main;
error_log /var/log/nginx_error.log debug;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# HTTPS server
server {
listen 22443;
server_name localhost_ssl;
ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root /srv/http;
index index.html index.htm index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
root /srv/http;
include fastcgi.conf;
}
location /RPC2 {
include scgi_params;
fastcgi_pass unix:/tmp/scgi.socket;
}
}
}
Rtorrent scgi config
Code:
scgi_local = /tmp/scgi.socket
schedule = chmod,0,0,"execute=chmod,777,/tmp/scgi.socket"
ruTorrent Config
Code:
$scgi_port = 0;
$scgi_host = "unix:///tmp/scgi.socket";
// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
[16.08.2012 04:31:15] Bad response from server: (502 [error,list]) <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.2.3</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
So PHP works, because my test page works fine, and the RPC thing seems to have stopped causing issues but everytime I load the ruTorrent page it throws that up at me for some reason?
Additionally I seem to be able to add torrents via the web interface but they don't show up on the list, but do show on the console rtorrent part.
nginx Config
Code:
user http torrent;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 10 10;
gzip on;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx_access.log main;
error_log /var/log/nginx_error.log debug;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# HTTPS server
server {
listen 22443;
server_name localhost_ssl;
ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root /srv/http;
index index.html index.htm index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
root /srv/http;
include fastcgi.conf;
}
location /RPC2 {
include scgi_params;
fastcgi_pass unix:/tmp/scgi.socket;
}
}
}
Rtorrent scgi config
Code:
scgi_local = /tmp/scgi.socket
schedule = chmod,0,0,"execute=chmod,777,/tmp/scgi.socket"
ruTorrent Config
Code:
$scgi_port = 0;
$scgi_host = "unix:///tmp/scgi.socket";
// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!