Fixes wrong location declaration for nginx, fixes #749

Thanks to altmir
This commit is contained in:
Andreas Burchert (scarya)
2011-09-19 11:21:11 +02:00
parent bb01dd0d93
commit 369df7af62
2 changed files with 7 additions and 6 deletions

View File

@@ -422,6 +422,7 @@ class nginx
$vhost_content.= $this->getLogFiles($domain);
$vhost_content.= $this->getWebroot($domain, $ssl_vhost);
if ($this->_deactivated == false) {
$vhost_content.= $this->create_pathOptions($domain);
// $vhost_content.= $this->create_htaccess($domain);

View File

@@ -38,8 +38,8 @@ class nginx_phpfpm extends nginx
$phpconfig = $php->getPhpConfig((int)$domain['phpsettingid']);
$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";
// $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' && $ssl_vhost) {
$php_options_text.= "\t\t".'fastcgi_param HTTPS on;'."\n";
}