Error after last update duplicate location "/phpmyadmin" in /etc/nginx/conf.d/phppgadmin.inc:1

Hello,

I get this error after last update. I checked the changelog in GitHub and it looks like my error correspond to the last update.

nginx: [emerg] duplicate location “/phpmyadmin” in /etc/nginx/conf.d/phppgadmin.inc:1
Feb 05 10:02:49

This is my /etc/nginx/conf.d/phppgadmin.inc

" location /phpmyadmin {
alias /usr/share/phppgadmin/;

    location ~ ^/phpmyadmin/(.*\.php)$ {
            alias         /usr/share/phppgadmin/$1;
            include       /etc/nginx/fastcgi_params;
            fastcgi_index index.php;
            fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_pass  unix:/run/php/www.sock;
    }

} "

Anyone have same problem? How to resolve it?

Best regards,
Cholly

v-change-sys-db-alias pga phppgadmin

1 Like

Thank you very much for your help.