Bonjour.
Sur un installation propre de Stretch et après avoir suivi ce tuto Installer ruTorrent sur Debian 9 j'essai d'installer un certificat ssl.
Mais j'ai une erreur au redémarrage de nginx.
Le statut de nginx :
systemd[1]: Starting nginx - high performance web server...
nginx[17207]: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/seedbox.conf:23
nginx[17207]: nginx: configuration file /etc/nginx/nginx.conf test failed
systemd[1]: nginx.service: Control process exited, code=exited status=1
systemd[1]: Failed to start nginx - high performance web server.
systemd[1]: nginx.service: Unit entered failed state.
systemd[1]: nginx.service: Failed with result 'exit-code'.
Le début de mon sites-enabled/rutorrent.conf :
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name mon.domain.fr;
ssl_certificate /etc/letsencrypt/live/mon.domain.fr/fullchain.p$
ssl_certificate_key /etc/letsencrypt/live/mon.domain.fr/privkey$
}
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
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;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
root /var/www;
location = /50x.html {
root /usr/share/nginx/html;
}
Et un /etc/letsencrypt/live/mon.domain.fr# ls -l me renvoi
-bash: /etc/letsencrypt/live/mon.domain.fr#: No such file or directory
Merci pour votre aide.