Pour rutorrent :
server {
listen 80;
listen 443 ssl;
server_name seed.mondomaine.fr;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
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;
log_not_found off;
}
location ^~ / {
root /var/www/rutorrent;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location ^~ /conf/ {
deny all;
}
location ^~ /share/ {
deny all;
}
}
Pour seedbox-manager :server {
listen 80;
listen 443 ssl;
server_name admin.mondomaine.fr;
charset utf-8;
index index.php;
client_max_body_size 10M;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
access_log /var/log/nginx/seedbox-manager-access.log combined;
error_log /var/log/nginx/seedbox-manager-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;
}
location ^~ / {
root /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
}