Phpmyadmin location for nginx
As weird as it seems to sound, the "standard" config did not work for phpMyAdmin on my side.
Here is what I ended up doing, now working with success on "/phpmyadmin" :
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:9000;
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/;
}
}
I am nowhere a seasoned admin, and this piece of config needs cleaning, but it is a good starter I hope.