Concrètement ça donne ça:
nginx.conf (j'ai passé error.log de "crit" à "error" comme sur rutorrent.conf au passage)
nginx.conf (j'ai passé error.log de "crit" à "error" comme sur rutorrent.conf au passage)
user nginx;
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;
}
et rutorrent.conf
server {
listen 80 default_server;
listen 443 default_server ssl;
server_name _;
index index.html index.php;
charset utf-8;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
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;
return 204;
}
## 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 cakebox 2.8 ##
# location ^~ /cakebox {
# root /var/www/;
# include /etc/nginx/conf.d/php;
# include /etc/nginx/conf.d/cache;
# }
# location /cakebox/downloads {
# root /var/www;
# satisfy any;
# allow all;
# }
## fin config cakebox 2.8 ##
## début config seedbox manager ##
# location ^~ / {
# root /var/www/manager;
# include /etc/nginx/conf.d/php;
# include /etc/nginx/conf.d/cache;
# }
# location ^~ /conf/ {
# root /var/www/manager;
# deny all;
# }
## fin config seedbox manager ##
}