Merci pour le tuto c'est top ce système !
j'en ai bavé à faire mon fichier de config, après 1001 erreurs 404 403 file not found, après trois clavier balancé par la fenêtre (je plaisante ).
J'arrive à accéder à mon lien symbolique avec mes ID & MDP rutorrent, mais parcontre c'est d'une laideur je navigue avec un autoindex basique. Le système _h5ai n'a pas l'air d'être trouvé ou de se lancer... Bref trêve de blablatterie.
Mon fichier rutorrent.conf:
server {
listen 80 default_server;
listen 443 default_server ssl http2;
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;
include /etc/nginx/conf.d/ciphers.conf;
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;
}
## Portail ##
location ^~ / {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
## fin portail ##
## Debut config telechargement et visionneuse ##
location ^~ /cinema {
root /var/www/blackbox;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
#On appelle h5ai
index index.html index.php _h5ai/public/index.php;
#On autorise le listing des fichiers
autoindex on;
#Facultatif on utilise l'auth de rutorrent
#auth_basic "whiterabbit";
#auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
}
Fin config t & v
## début config accueil serveur ##
location ^~ /blackbox {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
satisfy any;
allow all;
}
## fin config accueil serveur ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www/blackbox;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
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/blackbox;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
location ^~ /img {
root /var/www/blackbox;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www/blackbox;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
auth_basic "Monitoring";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user";
}
location ^~ /nginx_status {
stub_status on;
access_log off;
satisfy any;
allow 127.0.0.1;
deny all;
}
## fin config munin ##
location ^~ /seedbox-manager {
alias /var/www/blackbox/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config seedbox-manager ##
## config utilisateurs ##
location /USER {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user";
}
location /USER2 {
include scgi_params;
scgi_pass 127.0.0.1:5003;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_user2";
}
}
Ensuite pour être précis : Le dossier base je l'ai balancé à la poubelle mon arbo c'est : var/www/MA_racine_Ftp/blackbox
Dans blackbox se trouvent : seedbox-manager / rutorrent / graph / _h5ai / monitoring / cinema
dans mon dossier cinema se trouve mon lien symbolique torrents soit (/home/user/torrents).
J'ai un second problème quand je vais sur mon Graph je ne vois pas les images... l'url est:
<img src="../graph/img/@RTOM@_spdd-day.png">
En vous remerciant par avance