Fix PHP upstream with no backup (fixes #155)

pull/159/head
MattIPv4 2020-06-21 15:40:27 +01:00
parent 824b0312fd
commit 0f4c53b5ac
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export default (domains, global) => {
config.include = 'fastcgi_params';
config['# fastcgi settings'] = '';
config.fastcgi_pass = domains.some(d => d.php.php.computed) && global.php.phpBackupServer
config.fastcgi_pass = domains.some(d => d.php.php.computed) && global.php.phpBackupServer.computed !== ''
? 'php'
: ((global.php.phpServer.computed[0] === '/' ? 'unix:' : '') + global.php.phpServer.computed);
config.fastcgi_index = 'index.php';