Fix PHP upstream with no backup (fixes #155)
parent
824b0312fd
commit
0f4c53b5ac
|
@ -41,7 +41,7 @@ export default (domains, global) => {
|
||||||
config.include = 'fastcgi_params';
|
config.include = 'fastcgi_params';
|
||||||
|
|
||||||
config['# fastcgi settings'] = '';
|
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'
|
? 'php'
|
||||||
: ((global.php.phpServer.computed[0] === '/' ? 'unix:' : '') + global.php.phpServer.computed);
|
: ((global.php.phpServer.computed[0] === '/' ? 'unix:' : '') + global.php.phpServer.computed);
|
||||||
config.fastcgi_index = 'index.php';
|
config.fastcgi_index = 'index.php';
|
||||||
|
|
Loading…
Reference in New Issue