File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
presets/bitrix/nginx/vhost.common.d Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function setupSsmtpConf() {
3737 $ conf [] = 'Debug=YES ' ;
3838 }
3939
40- if (strpos ( strtolower ( $ ssmtp ['scheme ' ]) , 'tls ' ) !== false ) {
40+ if (stripos ( $ ssmtp ['scheme ' ], 'tls ' ) !== false ) {
4141 $ conf [] = 'UseTLS=YES ' ;
4242 $ conf [] = 'TLS_CA_File=/etc/ssl/certs/ca-certificates.crt ' ;
4343 }
@@ -65,7 +65,7 @@ function setupRevAliases() {
6565
6666 $ mailhub = $ ssmtp ['host ' ] . ($ ssmtp ['port ' ] ? ': ' . $ ssmtp ['port ' ] : '' );
6767
68- $ users = array_map (function ($ user ) use ($ mailhub ) {
68+ $ users = array_map (static function ($ user ) use ($ mailhub ) {
6969 return $ user . ': ' . $ _ENV ['SSMTP_DEFAULT_FROM ' ] . ': ' . $ mailhub ;
7070 }, $ users );
7171
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ location ~ \.php$ {
33 try_files $uri @bitrix;
44 fastcgi_split_path_info ^(.+\.php)(/.+)$;
55 fastcgi_pass php-upstream;
6- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
6+ fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
7+ fastcgi_param DOCUMENT_ROOT $realpath_root;
78 fastcgi_param SCRIPT_NAME $fastcgi_script_name;
89 fastcgi_index index.php;
910 include fastcgi_params;
You can’t perform that action at this time.
0 commit comments