[SOLVED] Install rutorrent on apache and nginx as front end proxy

peshua19

Member
May 25, 2018
897
0
16
Hi, I'm new here.
I just installed rutorrent on debian, everything works fine but I have one problem here.
I'm using apache for webserver and nginx as front end proxy. when I open my domain, exampe : http://domain.com I got the following errors :
Code:
[25.11.2013 10:33:53] Bad response from server: (502 [error,getuisettings]) <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.4.1</center> </body> </html&gt
Code:
[24.11.2013 21:32:16] Bad response from server: (404 [error,list]) <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.4.1</center> </body> </html>
Code:
Bad response from server: (401 [error,getplugins]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Unauthorized</title> </head><body> <h1>Unauthorized</h1> <p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p> <hr> <address>Apache/2.4.6 (Debian) Server at Port 80</address> </body></html>
but if I open my domain like this : http://domain.com:8080
it works like a charms...
FYI, nginx run on port 80 and apache on port 8080
am I missing something?
 

randac56

Member
May 25, 2018
915
0
16
after searching on the web, I found a way to fix "Bad response from server: (502 [error,getuisettings])"
it was php-fpm problem, need to edit /etc/php5/fpm/pool.d/www.conf

Code:
listen = /var/run/php5-fpm.sock
to

Code:
listen = 127.0.0.1:9000

but now I got another error

Code:
[28.11.2013 14:36:19] Bad response from server: (404 [error,getplugins]) File not found
Code:
[28.11.2013 14:36:19] Bad response from server: (404 [error,getuisettings]) File not found.

please help cry.gif
 

randac56

Member
May 25, 2018
915
0
16
fixed again by me, it was nginx server blocks configuration.

and now I got error like this

Code:
[28.11.2013 15:02:06] Bad response from server: (404 [error,gettotal]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /index.php was not found on this server.</p> <hr> <address>Apache/2.4.6 (Debian) Server at Port 80</address> </body></html>