diff --git a/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php b/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php index a5a6eacd..2a8746f2 100644 --- a/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php +++ b/scripts/jobs/cron_tasks.inc.http.35.nginx_phpfpm.php @@ -40,6 +40,9 @@ class nginx_phpfpm extends nginx $php_options_text = "\t".'location ~ \.php$ {'."\n"; $php_options_text.= "\t\t".'fastcgi_index index.php;'."\n"; $php_options_text.= "\t\t".'include /etc/nginx/fastcgi_params;'."\n"; + if ($domain['ssl'] == '1') { + $php_options_text.= "\t\t".'fastcgi_param HTTPS on;'."\n"; + } $php_options_text.= "\t\t".'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'."\n"; $php_options_text.= "\t\t".'fastcgi_pass unix:' . $php->getInterface()->getSocketFile() . ';' . "\n"; $php_options_text.= "\t".'}'."\n";