il te manque un "}" un crochet de fermeture tout a la fin

	## 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 /AUDREY {
        include scgi_params;
        scgi_pass 127.0.0.1:5001;
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_audrey";
    }
}

erreur de copier/coller, j'ai bien un } a la fin

🙁
du coup montre moi le default et /etc/nginx/nginx.conf

cat /etc/nginx/sites-available/default

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
        listen 80 default_server;
        listen [::]:80 default_server;

    # SSL configuration
    #
    # listen 443 ssl default_server;
    # listen [::]:443 ssl default_server;
    #
    # Note: You should disable gzip for SSL traffic.
    # See: https://bugs.debian.org/773332
    #
    # Read up on ssl_ciphers to ensure a secure configuration.
    # See: https://bugs.debian.org/765782
    #
    # Self signed certs generated by the ssl-cert package
    # Don't use them in a production server!
    #
    # include snippets/snakeoil.conf;

    root /var/www/html;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

    server_name _;

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ =404;
            # Uncomment to enable naxsi on this location
            # include /etc/nginx/naxsi.rules;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #       include snippets/fastcgi-php.conf;
    #
    #       # With php5-cgi alone:
    #       fastcgi_pass 127.0.0.1:9000;
    #       # With php5-fpm:
    #       fastcgi_pass unix:/var/run/php5-fpm.sock;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #       deny all;
    #}
}


# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
#server {
#       listen 80;
#       listen [::]:80;
#
#       server_name example.com;
#
#       root /var/www/example.com;
#       index index.html;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}

cat /etc/nginx/nginx.conf

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        worker_connections 768;
        # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # SSL Settings
    ##

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # nginx-naxsi config
    ##
    # Uncomment it if you installed nginx-naxsi
    ##

    #include /etc/nginx/naxsi_core.rules;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}


#mail {
#       # See sample authentication script at:
#       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#       # auth_http localhost/auth.php;
#       # pop3_capabilities "TOP" "USER";
#       # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
#       server {
#               listen     localhost:110;
#               protocol   pop3;
#               proxy      on;
#       }
#
#       server {
#               listen     localhost:143;
#               protocol   imap;
#               proxy      on;
#       }
#}

commente cette ligne dans nginx.conf include /etc/nginx/conf.d/*.conf;

Modification effectué. Mais en voulant restart le service toujours le même message d'erreur

En tout cas merci pour le temps que tu me consacre

YES !
ça fonctionne!

Tu peux m'expliquer ? stp

MERCI

oui ,
déjà include au début était en dehors des crochets "http { }"
puis a la fin le include /etc/nginx/conf.d/*.conf lit tout les fichiers alors que cest des fichiers de config qui doit etre utiliser entre les balise "location"
exemple

location ^~ / {
        root /var/www/base;
        include /etc/nginx/conf.d/php.conf;
        include /etc/nginx/conf.d/cache.conf;
        satisfy any;
        allow all;
    }
2 ans plus tard

Bonjour à tous,

Je me permets de déterrer ce topic car je rencontre depuis peu le même problème que @al1987 suite à une tentative d'installation de wordpress.

Mêmes erreur de nginx:

location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
        expires 30d;
        access_log off;
}

location ~* \.(eot|ttf|woff|svg)$ {
        add_header Acccess-Control-Allow-Origin *;
}

Mon fichier nginx.conf semble également identique:

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/.conf;

events {
worker_connections 768;
multi_accept on;

}

http {

##
# Basic Settings
##

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;

# server_names_hash_bucket_size 64;
# server_name_in_redirect off;

include /etc/nginx/mime.types;
default_type application/octet-stream;

##
# SSL Settings
##

ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;

##
# Logging Settings
##

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

##
# Gzip Settings
##

gzip on;
gzip_disable "msie6";

# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javasc$

##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##

#include /etc/nginx/naxsi_core.rules;

##
# Virtual Host Configs
##

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

}

(J'ai viré du copier/coller le mail car non configuré)

En revanche mon fichier rutorrent.conf est plus exotique. Il vient d'une vieille installe du script de exrat:

server {
listen 80 default_server;
listen 443 default_server ssl;
server_name _;

index index.html index.php;
charset utf-8;
client_max_body_size 10M;

ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;

include /etc/nginx/conf.d/ciphers.conf;

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 accueil serveur ##

location ^~ / {
    root /var/www/base;
    include /etc/nginx/conf.d/php.conf;
    include /etc/nginx/conf.d/cache.conf;
    satisfy any;
    allow all;
}

fin config accueil serveur

## 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 ^~ /rutorrent {
    root /var/www;
    include /etc/nginx/conf.d/php.conf;
    include /etc/nginx/conf.d/cache.conf;

    location ~ /\.svn {
            deny all;
    }

    location ~ /\.ht {
            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 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 /RIKUL {
    include scgi_params;
    scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session$
    auth_basic "seedbox";
    auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_rikul";
}

location /SBARF {
    include scgi_params;
    scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session$
    auth_basic "seedbox";
    auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sbarf";
}

}

J'avais pourtant pris soin de sauvegarder ce fichier avant de faire ma manip (inclusion des paramètres wordpress) mais j'ai dû rater un truc.

La solution en fin de post de @xavier me semble intéressante mais je n'arrive pas à récupérer le fichier sur paste.mondedié pour étudier plus en profondeur....

Par ailleurs je ne comprends pas pourquoi nginx me signale une erreur sur la ligne 1 de cache.conf alors qu'il semble intègre et que je n'y ai pas touché.

Merci pour votre aide

    rikul
    Salut
    Test ça

    server {
    listen 80 default_server;
    listen 443 default_server ssl;
    server_name _;
    
    index index.html index.php;
    charset utf-8;
    client_max_body_size 10M;
    
    ssl_certificate /etc/nginx/ssl/server.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;
    
    include /etc/nginx/conf.d/ciphers.conf;
    
    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 accueil serveur ##
    
    location ^~ / {
        root /var/www/base;
        include /etc/nginx/conf.d/php.conf;
        include /etc/nginx/conf.d/cache.conf;
        satisfy any;
        allow all;
    }
    
    #fin config accueil serveur
    
    ## 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 ^~ /rutorrent {
        root /var/www;
        include /etc/nginx/conf.d/php.conf;
        include /etc/nginx/conf.d/cache.conf;
    
        location ~ /\.svn {
                deny all;
        }
    
        location ~ /\.ht {
                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 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 /RIKUL {
        include scgi_params;
        scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session$
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_rikul";
    }
    
    location /SBARF {
        include scgi_params;
        scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session$
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sbarf";
    }
    
    }

      xavier merci pour ta réactivité.

      Malheureusement j'ai toujours la même erreur au restart de nginx. (erreur ligne 1 du fichier cache.conf)

      J'explore d'autres pistes notamment en raison de problème lors des update de nginx lorsque j'ai installé mysql et phpmyadmin

      dpkg: error processing package nginx-full (--configure):
       subprocess installed post-installation script returned error exit status 1
      dpkg: dependency problems prevent configuration of nginx:
       nginx depends on nginx-full (>= 1.14.2-1~dotdeb+8.1) | nginx-light (>= 1.14.2-1~dotdeb+8.1) | nginx-extras (>= 1.14.2-1~dotdeb+8.1); however:
        Package nginx-full is not configured yet.
        Package nginx-light is not installed.
        Package nginx-extras is not installed.
       nginx depends on nginx-full (<< 1.14.2-1~dotdeb+8.1.1~) | nginx-light (<< 1.14.2-1~dotdeb+8.1.1~) | nginx-extras (<< 1.14.2-1~dotdeb+8.1.1~); however:
        Package nginx-full is not configured yet.
        Package nginx-light is not installed.
        Package nginx-extras is not installed.
      
      dpkg: error processing package nginx (--configure):
       dependency problems - leaving unconfigured
      Errors were encountered while processing:
       nginx-full
       nginx
      

      Mon nginx doit être un peu fatigué depuis le temps. J'essaie de corriger ces erreurs et reviens vers vous. Sinon vous pensez qu'une réinstallation de nginx pourrait faire l'affaire ?

      8 jours plus tard

      Bon je n'ai pas résolu mon problème mais j'ai bien investigué 😉
      Tout d'abord j'ai testé mes 3 fichiers de conf (rutorrent.conf, nginx.conf, cache.conf) avec la fonction nginx -c / xxxxx.conf -t.
      Voici les retours :

       sudo nginx -c /etc/nginx/sites-enabled/rutorrent.conf -t
      nginx: [emerg] "server" directive is not allowed here in /etc/nginx/sites-enabled/rutorrent.conf:1
      sudo nginx -c /etc/nginx/nginx.conf -t
      nginx: [emerg] "location" directive is not allowed here in /etc/nginx/conf.d/cache.conf:1
      nginx: configuration file /etc/nginx/nginx.conf test failed

      Bref c'est louche cette erreur soit disant ligne 1 alors que les fichiers n'ont pas été touché (bon j'ai bien trifouillé et fait des tests dans tous les sens).

      J'ai essayé de comprendre ce qui a pu se passer quand j'ai installé wordpress avec les mises à jour de php5 et et php-fpm:

      sudo php5-fpm -v
      PHP 5.6.40-0+deb8u1 (fpm-fcgi) (built: Feb 17 2019 01:22:46)
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
      with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
      sudo php5 -v
      PHP 5.6.40-0+deb8u1 (cli) (built: Feb 17 2019 01:19:33)
      Copyright (c) 1997-2016 The PHP Group
      Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
          with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
      

      En effet en fouillant sur github j'ai noté les différentes modifs de @ex_rat au sujet du fichier cache.conf et notamment " remise en place cache.conf/php.conf/php-manager.conf pour compatibilité "

      J'ai pas encore trouvé la solution mais je pense que je suis pas loin...
      J'aimerais juste pouvoir refaire fonctionner nginx sans tout devoir réinstaller...au moins revenir à la situation avant mon trifouillage noctule 😉

      Si vous avez des pistes 🙂

        rikul Salut
        Je pense que tes conf sont bonne mais pas les bon paquets nginx.
        En gros faut que tu supprime nginx-full, nginx-light, nginx-extras et reinstalle le nginx normal(sauvegarde bien la conf de nginx).

          xavier Merci de ton aide.

          Avant que je me relance dans de la bidouille nocturne voici ma version de nginx (nginx/1.14.2)
          J'ai réussi à mettre à jour en virant tous les fichiers de confs de sites-enable et de con.d....forcément plus d'erreurs...
          Pour info je suis toujours sous Jessie.
          Quitte à tout désinstaller penses tu que maintenant je peux passer également sous php7 ? Pour wordpress ça serait mieux mais pour refaire ma confid de rutorrent....J'ai vu qu'on pouvait faire coexister les 2 versions même si c'est pas propre...

          Bon pour info j'ai craqué et procédé à une resinstalle complète sur la base d'une debian 9.4 avec une version PHP 7.3 qui sera mieux pour Wordpress. J'ai suivi le tuto de Meister pour wordpress et tout c'est bien passé.
          Je pense installer phpmyadmin par la suite pour gérer plus simplement mes futures bases.

          Merci encore @xavier pour ton aide.

          Répondre…