

ну и файл /.osp/nginx/crm.local.conf
upstream websocketcrm {
server 127.127.126.55:2050;
}
server {
listen 80;
server_name crm.local;
return 302 https://\$server_name\$request_uri;
}
server {
listen 443 ssl;
server_name crm.local;
charset utf-8;
autoindex off;
index index.php;
ssl_certificate '{root_dir}/data/ssl/projects/$host/cert.crt';
ssl_certificate_key '{root_dir}/data/ssl/projects/$host/cert.key';
if ($scheme ~* ^(?!https).*$) {
return 301 https://$host$request_uri;
}
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ [^/]\.php(/|$) {
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass $php_server:9000;
include fastcgi.conf;
}
location = /socket {
proxy_cache_bypass $http_upgrade;
proxy_http_version 1.1;
proxy_pass http://127.127.126.55:2050;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}
все та же ошибка в логах:
2024/06/07 10:48:31 [emerg] 5700#16220: unknown "php_server" variableПС: все тоже самое на версии PHP 8.3-FCGI


