|
|
|
@ -1,10 +1,14 @@
|
|
|
|
|
try_files $uri =404;
|
|
|
|
|
|
|
|
|
|
# fastcgi
|
|
|
|
|
# default fastcgi_params
|
|
|
|
|
include fastcgi_params;
|
|
|
|
|
|
|
|
|
|
# fastcgi settings
|
|
|
|
|
fastcgi_pass {{ !isPHPBackup() ? ((data.php_server[0] === '/' ? 'unix:' : '') + data.php_server) : 'php' }};
|
|
|
|
|
fastcgi_index index.php;
|
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
@ -12,6 +16,3 @@ fastcgi_buffer_size 128k;
|
|
|
|
|
fastcgi_buffers 256 16k;
|
|
|
|
|
fastcgi_busy_buffers_size 256k;
|
|
|
|
|
fastcgi_temp_file_write_size 256k;
|
|
|
|
|
|
|
|
|
|
# default fastcgi_params
|
|
|
|
|
include fastcgi_params;
|
|
|
|
|