summaryrefslogtreecommitdiffstats
path: root/phpMyAdmin.nginx
diff options
context:
space:
mode:
Diffstat (limited to 'phpMyAdmin.nginx')
-rw-r--r--phpMyAdmin.nginx19
1 files changed, 19 insertions, 0 deletions
diff --git a/phpMyAdmin.nginx b/phpMyAdmin.nginx
new file mode 100644
index 0000000..e10fed3
--- /dev/null
+++ b/phpMyAdmin.nginx
@@ -0,0 +1,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;
+ }
+}