Bonjour,
Je rencontre le problème suivant :
Quand j'accède à rutorrent par l'adresse :
https://monip/rutorrent/ , tout fonctionne parfaitement.
Mais quand j'accède par l'adresse :
https://mondomain.tld/rutorrent/
je vois ça :
J'ai aussi des bugs etc...
Voici mes fichiers de config :
server {
listen 80 default_server;
listen 443 default_server ssl;
server_name _;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début config accueil serveur ##
location ^~ / {
root /var/www/perso;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
satisfy any;
allow all;
}
## fin config accueil serveur ##
## début config proxy ##
location ^~ /proxy {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
## fin config proxy ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
## fin config rutorrent ##
## début config munin ##
location ^~ /graph {
root /var/www/graph;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
location ^~ /graph/img {
root /var/www/graph/img;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
## fin config munin ##
## début config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager;
include /etc/nginx/conf.d/cache;
}
## fin config seedbox-manager ##
## debut config cakebox-light ##
location /cakebox/ {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
}
location /cakebox/user1/ {
alias /home/user1/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /cakebox/user2/ {
alias /home/user2/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /cakebox/user3/ {
alias /home/user3/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /cakebox/user4/ {
alias /home/user4/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /cakebox/user5/ {
alias /home/user5/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## fin config cakebox-light ##
## config utilisateurs ##
location /USER1 {
include scgi_params;
scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user1";
}
location /USER2 {
include scgi_params;
scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user2";
}
location /USER3 {
include scgi_params;
scgi_pass 127.0.0.1:5004; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user3";
}
location /USER4 {
include scgi_params;
scgi_pass 127.0.0.1:5005; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user4";
}
location /USER5 {
include scgi_params;
scgi_pass 127.0.0.1:5006; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user5";
}
}
et quand je me connecte sur mondomaine.tld/rutorrent cela crée ce genre l'erreur dans rutorrent-error.log :
2015/03/11 12:23:44 [error] 23600#0: *20330 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: monip, server: _, request: "POST /USER1 HTTP/1.1", upstream: "scgi://127.0.0.1:5001", host: "mondomaine.tld", referrer: "https://mondomaine.tld/rutorrent/"
Voilà. j'espère que vous pouvez m'aider. Rien n'est urgent après, car j'y accède bien et tout fonction sur l'adresse ip/rutorrent/