Bonjour à tous,
J'ai installer ma seedbox à l'aide du [Tuto] Installer ruTorrent sur Debian 8 {nginx & php-fpm}, tout fonctionne.
J'ai ensuite forcé la redirection vers https, tout fonctionne aussi [Tuto]
http://mondedie.fr/d/5373
Maintenant je me suis intéressé à comment associer mon nom de domaine et mon serveur [Tuto] Associer un nom de domaine à un serveur
J'ai bien accès à mon serveur via
https://hostname.mondomaine.tld/rutorrent mais j'ai aussi accès depuis
https://IP/ruttorent
J'ai configuré le reverse sur mon serveur ce matin.
Cependant je ne sais pas comment empêcher l'accès aux url depuis
https://IP/url par contre lorsque j'essai de me connecter avec
http://ip/url je suis bien redirigé vers
https://hostname.domaine.ovh/url?
Si quelqu'un à une idée je suis preneur
Mon fichier rutorrent.conf commence comme ça :
server{
listen 80 ;
server_name hostname.domaine.ovh;
rewrite ^
https://hostname.domaine.ovh$request_uri? permanent;
}
server{
listen 443 ssl ;
server_name hostname.domaine.ovh;
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;
location = /50x.html { root /usr/share/nginx/html; }
error_page 500 502 503 504 /50x.html;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
location = /favicon.ico {
access_log off;
log_not_found off;
}
.....