summaryrefslogtreecommitdiffstats
path: root/php-pecl-apm.nginx
blob: fcde4696ea6b9bfec73ae5ee913b3a70a9c7c9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
     }
}