Bonsoir a tous,

Je ne m'y étais pas penché dessus car pas genant jusque la mais depuis plusieurs mois, je n'ai pas acces a phpmyadmin et j'obtiens une erreur 404.

j'ai pourtant suivi le tuto a la lettre. Je poste mon fichier de conf

server {
listen 80;
server_name phpmyadmin.atscaf13foot.fr;
return 301 https://$server_name$request_uri;
}

server {
listen 443 ssl;
server_name phpmyadmin.atscaf13foot.fr;

index index.html index.php;
charset utf-8;
client_max_body_size 10M;
 
ssl_certificate /etc/letsencrypt/live/phpmyadmin.atscaf13foot.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/phpmyadmin.atscaf13foot.fr/privkey.pem;

location ^~ / {
    root /var/www/phpmyadmin;
    include /etc/nginx/conf.d/php.conf;
    include /etc/nginx/conf.d/cache.conf;

    index index.php index.html index.htm;

    location ~ ^/phpmyadmin/(.+\.php)$ {
        try_files $uri =404;
        root /usr/share/;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/fastcgi_params;
    }

    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
        root /usr/share/;
    }
}

}

Merci par avance

K

Répondre…