24 lines
801 B
Plaintext
Executable File
24 lines
801 B
Plaintext
Executable File
# Split PATH_INFO dla static.php i innych
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
|
|
# WAŻNE: Przypisz do zmiennej PRZED try_files
|
|
set $path_info $fastcgi_path_info;
|
|
|
|
# 404
|
|
try_files $fastcgi_script_name =404;
|
|
|
|
# default fastcgi_params
|
|
include fastcgi_params;
|
|
|
|
# fastcgi settings
|
|
fastcgi_pass unix:/run/php/php-fpm-mail.sock;
|
|
fastcgi_index index.php;
|
|
fastcgi_buffers 8 16k;
|
|
fastcgi_buffer_size 32k;
|
|
|
|
# fastcgi params
|
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $path_info;
|
|
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/:/etc/enigma:/run/current-system/sw/bin/gpg2:/usr/bin/gpg:/run/current-system/sw/bin/gpgconf:/usr/bin/gpg-agent:/usr/bin/gpgconf:/run/current-system/sw/bin/gpgconf";
|