Bonjour
Très actif en ce moment sur mon dédié j'ai voulu reprendre le tuto pour installer un certificat StarSSL en fait j'ai tout recommencé !!
Arrivé au moment fatidique je redémarre nginx et....
Boum !! Message d'erreur dans rutorrent.conf :
[emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/sites-enabled/rutorrent.conf:161
Problème la ligne 161 est totalement vide car les codes s’arrêtent avant ???
Voici mon vhost :
server {
listen 80;
server_name mndd.com;
return 301 https://mndd.com$request_uri;
}
server {
listen 443 default_server ssl;
server_name mndd.com;
charset utf-8;
index index.html index.php;
client_max_body_size 10M;
ssl on;
ssl_certificate /etc/nginx/keys/mndd.com.crt-unified;
ssl_certificate_key /etc/nginx/keys/mndd.com.key;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-G$
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;
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 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 ^~ / {
root /var/www/rutorrent;
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 /USER {
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_patchwork";
}
location ^~ /syncnas {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
index index.html index.php;
}
## debut config cakebox-light ##
location /cakebox {
rewrite ^/cakebox(/.*)$ $1 break;
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
location /cakebox/user/ {
alias /home/user/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
location /cakebox/<username2>/ {
alias /home/<user2>/torrents/;
add_header Content-Disposition "attachment";
satisfy any;
allow all;
}
## début config linux-dash ##
location ^~ /linux-dash {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config linux-dash ##
}
Là ça me dépasse un peu d'autant plus que le tout premier message :
[emerg] unexpected "a" in /etc/nginx/sites-enabled/rutorrent.conf:45
tombait sur une ligne commentée et du coup j’avais effacé le bloc entier (config de _h5ai)
Pour finalement retombé sur le message avec la ligne 161 fantôme !!
Si quelqu'un a une idée, une solution... Merci !!