summaryrefslogtreecommitdiffstats
path: root/phpMyAdmin.nginx
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-10-04 10:47:48 +0200
committerRemi Collet <fedora@famillecollet.com>2014-10-04 10:47:48 +0200
commit781e78e495f977c8d15bf9baeaca67408d28edda (patch)
treeb6b741e87a5897ab4fc4075d54bddd45d8fc8ca1 /phpMyAdmin.nginx
parentba51457200e72c43c4aa6c3a67bcd268cac59c14 (diff)
phpMyAdmin: provide nginx configuration (F21+)
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;
+ }
+}