mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
20 lines
535 B
PHP
20 lines
535 B
PHP
#[php]
|
|
@php
|
|
$phpSocket = "unix:/var/run/php/php{$site->php_version}-fpm.sock";
|
|
if ($site->isIsolated()) {
|
|
$phpSocket = "unix:/run/php/php{$site->php_version}-fpm-{$site->user}.sock";
|
|
}
|
|
@endphp
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
location ~ \.php$ {
|
|
fastcgi_pass {{ $phpSocket }};
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
fastcgi_hide_header X-Powered-By;
|
|
}
|
|
index index.php index.html;
|
|
error_page 404 /index.php;
|
|
#[/php]
|