- Modifié
Bonjour,
J'ai suivi hier le tuto de Magicalex "[Tuto] Installer ruTorrent sur Debian {nginx & php-fpm}" jusqu'ici sans soucis, ruTorrent fonctionne à merveille.
Cependant j'ai voulu suivre son tuto "[Tuto] Installer Cakebox-light {nginx}" mais là gros soucis, les étapes concernant le sous domaine sont trop peu détaillés.
Je possède effectivement des ndd donc j'ai ajouté comme il l'est dit une zone DNS sur l'un d'eux, qui pointe sur mon serveur Kimsufi :
- Sur mon kimsufi
Le screen de nano /var/www/cakebox/app/config/username.php
<?php
/*
General configuration of Cakebox
*/
$app["cakebox.root"] = "/home/username/torrents/"; // Root directory Cakebox have to scan
$app["cakebox.access"] = "/username/"; // Alias used in web server for direct access
/*
Web player settings
*/
$app["player.type"] = "VLC"; // HTML5 or DIVX or VLC
/*
Betaseries account
NB: Ask API key here http://www.betaseries.com/api/
*/
$app["bs.login"] = "";
$app["bs.passwd"] = "";
$app["bs.apikey"] = "";
Screen de nano /etc/nginx/sites-enabled/cakebox.conf
server {
listen 80;
server_name cakebox.m******.fr; ## sous domaine obligatoire
root /var/www/cakebox/public;
index index.php;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
charset utf-8;
include /etc/nginx/conf.d/cache;
access_log /var/log/nginx/cakebox-access.log;
error_log /var/log/nginx/cakebox-error.log;
location = / {
try_files @site @site;
}
location / {
try_files $uri $uri/ @site;
}
location /username/ {
alias /home/username/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param APPLICATION_ENV production;
## uncomment when running via https
## fastcgi_param HTTPS on;
}
}
Partie - Installer le plugin linkcakebox pour ruTorrent
Screen de nano /var/www/rutorrent/plugins/linkcakebox/conf.php
<?php
$url = 'http://cakebox.m******.fr'; //force le http
$dirpath = '/home/'.$user.'/torrents/';
$onglet = true; //ou false
Le soucis c'est que lorsque je me rends sur http://cakebox.m******.fr/ et bien j'ai une une joli 404, aurais-je oublier un fichier à configurer quelconque?
Si vous aviez un tuyau merci !