• Seedbox
  • [Discussion] Installation de l'application seedbox-manager

Bonjour..

Je crois avoir un petit problème....

1) Dans mon fichier nginx/conf.d/php-manager .. j'ai ceci:
location ~ \.php$ {
    root /var/www/seedbox-manager;
    include /etc/nginx/fastcgi_params;
    fastcgi_index index.php;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
Parcontre, quand je veux accéder à http://mondomain/seedbox-manager .. j'ai File not found. La seule façon d'y accéder est par http://mondomaine.

Si quelqu'un pouvait m'aider Merci !
salut paramore2k, Tu as installer via le script automatique ?
Salut
Voir la conf "bonus" de nginx en fin du tuto seedbox-manager pour du http://xx.xx.xx.xx/seedbox-manager/ ,
ou poster ton rutorrent.conf si tu penses l'avoir correctement modifié histoire d'être sûr .
Ex.
hydrog3n : J'ai suivie le tutoriel à la lettre..

ex_rat : J'ai suivie la partie bonus également .... j'ai re-vérifier avant de poster mon commentaire.

voici mon rutorrent.conf de nginx/sites-enabled

server {

location ^~ /partage {
	root /var/www/base;
	include /etc/nginx/conf.d/php;
	include /etc/nginx/conf.d/cache;
	#On appelle h5ai
      index index.html index.php /_h5ai/server/php/index.php;
	#On autorise le listing des fichiers
        autoindex on;
	#Facultatif on utilise l'auth de rutorrent
       # auth_basic "Vous devez vous authentifier";
       # auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paramore2k";
}


 
   location /cakebox/ {
        rewrite ^/cakebox(/.*)$ $1 break;
        proxy_pass [url]http://127.0.0.1:81[/url];
        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/paramore2k/ {
        alias /home/paramore2k/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    ## etc si d'autre utilisateur ##

    ## fin config cakebox-light ##

    listen 80 default_server;
    listen 443 default_server ssl;
    server_name _;

    ## 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 ##   
    ## début config seedbox-manager ##

    location ^~ / {
	root /var/www/seedbox-manager/public;
	include /etc/nginx/conf.d/php;
	include /etc/nginx/conf.d/cache;
    }

    ## fin config seedbox-manager ##

    charset utf-8;
    index index.html index.php;
    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 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;
    }
    location /PARAMORE2K {
        include scgi_params;
        scgi_pass 127.0.0.1:5001;
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paramore2k";
    }    
    ## fin config rutorrent ##

}
Problème:
 ## 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 ##   
    ## début config seedbox-manager ##
    location ^~ / {
    root /var/www/seedbox-manager/public;
    include /etc/nginx/conf.d/php;
    include /etc/nginx/conf.d/cache;
    }
    ## fin config seedbox-manager ##
Ne garde que ça :
## 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 ## 
Ex.
edit: c'est crade ton fichier là, y'en a partout, faut ranger un peu ...
C'est fait pour seedbox-manager .. maintenant j'ai l'erreur 404 not found
Tu as bien relancé nginx après modif ?
Quand tu vas en /var/www/ , tu vois bien ton dossier /seedbox-manager/ ( avec la commande ls ) ?
Ex.
Problème régler pour seedbox-manager.. le problème était dans /etc/nginx/conf.d/php-manager .. j'ai rajouter /public à la ligne de /var/www/seedbox-manager .. et maintenant seedbox-manager n'apparaît que quand je vais à /seedbox-manager

Va me rester le problème de H5ai à régler

Merci !!
C'est pas mal déjà

Ton fichier de conf dans le bon sens :
server {

    listen 80 default_server;
    listen 443 default_server ssl;
    server_name _;

    charset utf-8;
    index index.html index.php;
    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;
    }
    
    ## debut 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;
    }
    location /PARAMORE2K {
        include scgi_params;
        scgi_pass 127.0.0.1:5001;
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paramore2k";
    }    
    ## fin config rutorrent ##

    location ^~ /partage {
	    root /var/www/base;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	#On appelle h5ai
        index index.html index.php /_h5ai/server/php/index.php;
 	#On autorise le listing des fichiers
        autoindex on;
	#Facultatif on utilise l'auth de rutorrent
       # auth_basic "Vous devez vous authentifier";
       # auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_paramore2k";
    }

   ## debut config Cakebox ##
   location /cakebox/ {
        rewrite ^/cakebox(/.*)$ $1 break;
        proxy_pass [url]http://127.0.0.1:81[/url];
        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/paramore2k/ {
        alias /home/paramore2k/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    ## fin config cakebox-light ##

    ## debut 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 ##   
}
Parce que sinon tu peux pas t'y retrouver !
Ex.
9 jours plus tard
Hello,

Merci pour le manager
Par contre je n'arrive pas du tout à afficher l'espace disque d'un user, pourtant j'ai bien mis le home: /home/USER

Une idée ?
Hey, j'ai un petit soucis, après avoir foutu mon nom de domaine et teamspeak :

Config de base
ipduserveur ==>/var/www/base/
ipduserveur/seedbox-manager ==> /var/www/seedbox-manager

Maintenant j'ai :
ipduserveur ==> qui pointe sur wallou vu que le dossier /base/ n'existe plus
ipduserveur/seedbox-manager ==> qui après avoir rentrer mon user et mdp m'affiche une page complètement blanche.

Ma config sur rutorrent.conf:
        ## 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 ##
Salut,

Tu as bien /var/www/seedbox-manager?
Ouais je viens de vérifier et re-verifier y a tout dedans en plus
Poste ton rutorrent.conf en entier.
Ta redirection nom de domaine est bien faite chez ton registar?
comme prévu avec du retard ^^'
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/base;
            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;
            include /etc/nginx/conf.d/php;
            include /etc/nginx/conf.d/cache;
        }

        location ^~ /graph/img {
            root /var/www;
            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 ##

        ## Début config TeamSpeak ##

        location ^~ /teamspeak {
            root /var/www;
            include /etc/nginx/conf.d/php;
            include /etc/nginx/conf.d/cache;
            satisfy any;
            allow all;
        }

        ## Fin config TeamSpeak ##

        ## 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";
        }
}
include /etc/nginx/conf.d/php-manager;
ls -all /etc/nginx/conf.d
Bonsoir,

le soucis provient de cette ligne (ou plutôt ce fichier), je le présume (fortement). Soit il n'existe, soit le nom est mal renseignée (juste php comme les autres).
12 jours plus tard
Bonjour
C'est mon premier message ici donc déjà merci à tous pour votre boulot, c'est vraiment génial !

J'ai un petit soucis avec seedbox manager, j'ai utilisé le script d'installation automatique sur un serveur tout propre. Mais depuis le début je n'arrive pas à accéder au manager, j'ai une page blanche (après demande d'identification).

Voilà mon fichier rutorrent.conf
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/downloads;
                include /etc/nginx/conf.d/php;
                include /etc/nginx/conf.d/cache;
		satisfy any;
		allow all;
                #On appelle h5ai
                index index.html index.php /_h5ai/server/php/index.php;
                #On autorise le listing des fichiers
                autoindex on;
                #Facultatif on utilise l'auth de rutorrent
                auth_basic "Vous devez vous authentifier";
                auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_eyotiste";
        }

	## 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;
	    include /etc/nginx/conf.d/php;
	    include /etc/nginx/conf.d/cache;
	}

	location ^~ /graph/img {
	    root /var/www;
	    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 ##

	## début config sickbeard ##

	location /sickbeard {
		proxy_pass http://127.0.0.1:8081;
    		auth_basic "Sickbeard";
    		auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_eyotiste";
    		proxy_redirect off;
	    	proxy_set_header Host $http_host;
    		proxy_set_header X-Real-IP $remote_addr;
    		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

	## fin config sickbeard ##

        ## 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:5004; #ou socket : unix:/home/username/.session/username.socket
            auth_basic "seedbox";
            auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user2";
        }
}

(ne pas faire gaffe au soucis d'encodage de caractère, dans nano y a pas de soucis)

J'ai parcouru un peu le forum, mais je n'ai pas trouvé de réponse à mon problème :s

D'avance merci !
J'avoue que je n'ai pas testé car il n'y avait pas de retour sur la solution proposée.

EDIT : j'ai testé pour voir, je tombe sur une page "File not found" à la place de la page blanche
C'est exact, il n'y a eu de retour... D'accord merci, je présumais un autre résultat.
Quelques temps plus tard, j'ai appris l'existence de ces deux fichiers. Ainsi, dans le fichier php-manager, cette ligne :
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
Il faudrait la rectifié comme tel :
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;