mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-05 02:36:10 +08:00
php_fastcgi style fixes
This commit is contained in:
@@ -2,14 +2,15 @@
|
|||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
|
||||||
# fastcgi settings
|
# fastcgi settings
|
||||||
fastcgi_pass {{ !isPHPBackup() ? ((data.php_server[0] === '/' ? 'unix:' : '') + data.php_server) : 'php' }};
|
fastcgi_pass {{ !isPHPBackup() ? ((data.php_server[0] === '/' ? 'unix:' : '') + data.php_server) : 'php' }};
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
||||||
fastcgi_param PHP_ADMIN_VALUE open_basedir=$base/:/usr/lib/php/:/tmp/;
|
|
||||||
fastcgi_intercept_errors off;
|
|
||||||
|
|
||||||
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/";
|
||||||
|
|
||||||
|
fastcgi_intercept_errors off;
|
||||||
fastcgi_buffer_size 128k;
|
fastcgi_buffer_size 128k;
|
||||||
fastcgi_buffers 256 16k;
|
fastcgi_buffers 256 16k;
|
||||||
fastcgi_busy_buffers_size 256k;
|
fastcgi_busy_buffers_size 256k;
|
||||||
|
|||||||
Reference in New Issue
Block a user