Je viens de réinstaller en reprenant tout depuis le tout début, un truc avait du déconner la première fois, maintenant j'obtiens une erreur 500 Internal Server Error.
Avec dans le fichier /var/log/nginx/rutorrent-error.log
2016/06/03 12:57:34 [crit] 437#437: *2 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /seedbox-manager/ HTTP/1.1", host: "IP_SERVER"
2016/06/03 12:57:34 [crit] 437#437: *2 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /seedbox-manager/ HTTP/1.1", host: "IP_SERVER"
2016/06/03 12:57:35 [crit] 437#437: *3 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /favicon.ico HTTP/1.1", host: "IP_SERVER", referrer: "http://IP_SERVER/seedbox-manager/"
2016/06/03 12:57:35 [crit] 437#437: *3 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /favicon.ico HTTP/1.1", host: "IP_SERVER", referrer: "http://IP_SERVER/seedbox-manager/"
2016/06/03 13:06:13 [crit] 437#437: *5 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /seedbox-manager/ HTTP/2.0", host: "IP_SERVER"
2016/06/03 13:06:13 [crit] 437#437: *5 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /seedbox-manager/ HTTP/2.0", host: "IP_SERVER"
2016/06/03 13:06:14 [crit] 437#437: *5 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /favicon.ico HTTP/2.0", host: "IP_SERVER", referrer: "https://IP_SERVER/seedbox-manager/"
2016/06/03 13:06:14 [crit] 437#437: *5 open() "/etc/nginx/passwd/rutorrent_passwd" failed (13: Permission denied), client: Une_IP, server: _, request: "GET /favicon.ico HTTP/2.0", host: "IP_SERVER", referrer: "https://IP_SERVER/seedbox-manager/"
Juste au cas où :
le fichier /etc/nginx/conf.d/cache.conf
location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
location ~* \.(eot|ttf|woff|svg)$ {
add_header Acccess-Control-Allow-Origin *;
}
Le contenu du fichier /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll; # gestionnaire d'évènements epoll (kernel 2.6+)
}
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 15;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
tcp_nodelay off;
server_tokens off;
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_buffers 4 8k;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/vnd.ms-fontobject
font/truetype
font/opentype
image/svg+xml;
include /etc/nginx/sites-enabled/*.conf;
}
et le contenu du fichier : /etc/nginx/sites-enabled/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;
}
## début config accueil serveur ##
location ^~ / {
root /var/www/base;
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 proxy ##
location ^~ /proxy {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config proxy ##
## début config rutorrent ##
location ^~ /rutorrent {
root /var/www;
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;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
location ^~ /graph/img {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config munin ##
## début config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/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 /HAZRAAEL {
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_hazraael";
}
location /JEMREY {
include scgi_params;
scgi_pass 127.0.0.1:5006; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_jemrey";
}
}