mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-11 23:14:19 +08:00
Fix PHP upstream with no backup (fixes #155)
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user