diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-02-21 11:24:31 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-02-21 11:24:31 +0100 |
commit | 710153d18f8d7b8f47088175dc207d6317304365 (patch) | |
tree | 1f09cc47362a4bfa161be5b55200552537e9cc31 /php-pecl-apm.nginx |
php-pecl-apm: 2.0.0 - New package
Diffstat (limited to 'php-pecl-apm.nginx')
-rw-r--r-- | php-pecl-apm.nginx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/php-pecl-apm.nginx b/php-pecl-apm.nginx new file mode 100644 index 0000000..fcde469 --- /dev/null +++ b/php-pecl-apm.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; + } +} |