summaryrefslogtreecommitdiffstats
path: root/apm-web.nginx
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-03-16 10:41:39 +0100
committerRemi Collet <fedora@famillecollet.com>2015-03-16 10:41:39 +0100
commit06ec18af20744d4cb9e898d8cea7640de1e205f4 (patch)
tree8eb86359a831de73aebfdd2eafaa7a593dfe7613 /apm-web.nginx
apm-web: New package, split off php-pecl-apmHEADmaster
Diffstat (limited to 'apm-web.nginx')
-rw-r--r--apm-web.nginx26
1 files changed, 26 insertions, 0 deletions
diff --git a/apm-web.nginx b/apm-web.nginx
new file mode 100644
index 0000000..fcde469
--- /dev/null
+++ b/apm-web.nginx
@@ -0,0 +1,26 @@
+# APM (Alternative PHP Monitor)
+#
+# Allows only localhost by default
+#
+
+location = /@ALIAS@ {
+ alias @SHARE@/@ALIAS@/;
+}
+
+location /@ALIAS@/ {
+ root @SHARE@;
+ index index.php index.html;
+
+ location ~ ^/@ALIAS@/(.+\.php)$
+ {
+ allow 127.0.0.1;
+ allow ::1;
+ deny all;
+
+ try_files $uri =404;
+ fastcgi_intercept_errors on;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_pass php-fpm;
+ }
+}