From 5f2314863ba5434657266c554a237ed7d5fec719 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Wed, 28 Oct 2015 10:20:00 +0000
Subject: [PATCH] added phpma nginx conf

---
 phpmyadmin.nginx.conf | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 phpmyadmin.nginx.conf

diff --git a/phpmyadmin.nginx.conf b/phpmyadmin.nginx.conf
new file mode 100644
index 0000000..688d64e
--- /dev/null
+++ b/phpmyadmin.nginx.conf
@@ -0,0 +1,35 @@
+# Configuration for phpMyAdmin -- set it up to use php-fpm etc.
+server {
+    listen 80;
+    listen 8081;
+    root /home/gliders/phpma;
+    index index.php index.html index.htm;
+    server_name _;  # update with actual hostname when we get it
+
+    location / {
+        try_files $uri $uri/ /index.php;
+    }
+
+    error_page 404 /404.html;
+    error_page 500 502 503 504 /50x.html;
+
+    # Serve static files directly
+    location ~* \.(png|jpe?g|gif|ico)$ {
+        expires 1y;
+        access_log off;
+        try_files $uri $uri/ @rewrite;
+        gzip off;
+    }
+    location ~* \.(css|js)$ {
+        expires 1d;
+        access_log off;
+    }
+
+    location ~ \.php$ {
+        try_files $uri =404;
+        fastcgi_pass unix:/var/run/php5-fpm.sock;
+        fastcgi_index index.php;
+        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+        include fastcgi_params;
+    }
+}
-- 
GitLab