Bonjour,
Tout d’abords un grand merci et félicitation pour ce forum et ses tutoriels.
Bien-sur je rencontre quelques problèmes.
Après 3 tentatives je me décide a demander un peu d'aide, vue mon niveau plus que léger.
Installation fraiche, je suis le tuto Installation automatique ruTorrent {nginx}
http://mondedie.fr/d/5399
Tout est OK.
Je passe à l'install de Cakebox-light {nginx}
http://mondedie.fr/d/5314
Là je rencontre un problème.
le lien me retourne erreur 404
J'ai tenté de reboot le serveur via le manager et là surprise n'y seedbox-manager, n'y rutorrent ne sont accessible
j'ai aussi testé une modif donnée par kurumi
http://mondedie.fr/d/5776/1
#25
les modifs :
/etc/nginx/sites-enabled/cakebox.conf
server {
listen 80;
server_name cakebox.nomdedomaine.fr; # ton nom de domaine
/var/www/cakebox/config/user.php
$app["cakebox.access"] = "/user/"
nano /etc/nginx/sites-enabled/rutorrent.conf
il faut supprimer les lignes ajouter pour le URI, normalement ces lignes :
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_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
Voila, la seule solution que j'ai trouver est de formater le KS1 et re installer le scripts, mais à chaque fois que je met le cakebox-light je peux plus accéder au nanager et rutorrent.
Je comprend pas trop ou je foire.
Merci pour l'attention que vous porterez à ce message.
Edit:
J'ai re installé tout, j'ai une erreur a la commande
service nginx restart
/var/www/cakebox# service nginx restart
[....] Restarting nginx: nginxnginx: [emerg] unknown directive "..." in /etc/nginx/sites-enabled/rutorrent.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed
Rutorrent.conf
server {
...
## 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/seedboxhurri/ {
alias /home/seedboxhurri/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## etc si d'autre utilisateur ##
## fin config cakebox-light ##
...
}
## 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 ##
## config utilisateurs ##
location /SEEDBOXHURRI {
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_seedboxhurri";
}
}
et le nginx.conf
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log error;
sendfile on;
keepalive_timeout 20;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
tcp_nodelay off;
server_tokens off;
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 5;
gzip_disable "msie6";
gzip_min_length 20;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_vary on;
include /etc/nginx/sites-enabled/*.conf;
J' attend une réponse pour allez plus loin dans le tuto car après comme dit plus haut je n’accède plus a rien
Merci