Salut
à l'install de Cakebox-light {nginx}
http://mondedie.fr/d/5314
Je rencontre un problème.
le lien me retourne erreur 404
Peut être car je rencontre un problème après le restart:
service nginx restart
/var/www/cakebox# service nginx restart
[....] Restarting nginx: nginxnginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:70
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx.conf
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;
}
error.log
2015/02/25 20:44:41 [emerg] 16090#0: open() "/etc/nginx/conf.d/php-manager" failed (2: No such file or directory) in /etc/nginx/sites-enabled/rutorrent.conf:102
2015/02/25 20:47:28 [emerg] 19475#0: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/rutorrent.conf:109
2015/02/26 17:33:42 [emerg] 3038#0: unknown directive "..." in /etc/nginx/sites-enabled/rutorrent.conf:6
2015/02/26 18:42:12 [emerg] 13777#0: "location" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:70
2015/02/26 19:25:53 [emerg] 20689#0: "location" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:70
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";
}
## 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 ##
}
Si vous avez besoin d'autres choses...
Merci