summaryrefslogtreecommitdiffstats
path: root/phpMyAdmin.nginx
blob: e10fed37b73e910601796ca2cfd5ee30b6926365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# phpMyAdmin

location = /phpMyAdmin {
    alias /usr/share/phpMyAdmin/;
}

location /phpMyAdmin/ {
     root /usr/share;
     index index.php index.html;

     location ~ ^/phpMyAdmin/(.+\.php)$
     {
         try_files $uri =404;
         fastcgi_intercept_errors on;
         include        fastcgi_params;
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         fastcgi_pass   php-fpm;
     }
}