don't create fpm-socket in own vhost if not enabled, fixes #613

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2011-03-01 07:39:29 +01:00
parent 4da7b815f3
commit 5fde181fdc

View File

@@ -240,8 +240,9 @@ class nginx
$this->nginx_data[$vhost_filename].= "\t\t".'fastcgi_param HTTPS on;'."\n";
}
$this->nginx_data[$vhost_filename].= "\t\t".'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'."\n";
if((int)$this->settings['phpfpm']['enabled'] == 1)
{
if((int)$this->settings['phpfpm']['enabled'] == 1
&& (int)$this->settings['phpfpm']['enabled_ownvhost'] == 1
) {
$domain = array(
'id' => 'none',
'domain' => $this->settings['system']['hostname'],