Merge remote-tracking branch 'origin/master' into 0.10.0
This commit is contained in:
@@ -178,7 +178,7 @@ return array(
|
|||||||
'label' => $lng['customer']['diskspace'],
|
'label' => $lng['customer']['diskspace'],
|
||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 6,
|
'maxlength' => 16,
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $diskspace_ul
|
'ul_field' => $diskspace_ul
|
||||||
),
|
),
|
||||||
@@ -186,7 +186,7 @@ return array(
|
|||||||
'label' => $lng['customer']['traffic'],
|
'label' => $lng['customer']['traffic'],
|
||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
'maxlength' => 4,
|
'maxlength' => 14,
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $traffic_ul
|
'ul_field' => $traffic_ul
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ return array(
|
|||||||
'label' => $lng['customer']['diskspace'],
|
'label' => $lng['customer']['diskspace'],
|
||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['diskspace'],
|
'value' => $result['diskspace'],
|
||||||
'maxlength' => 6,
|
'maxlength' => 16,
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $diskspace_ul
|
'ul_field' => $diskspace_ul
|
||||||
),
|
),
|
||||||
@@ -178,7 +178,7 @@ return array(
|
|||||||
'label' => $lng['customer']['traffic'],
|
'label' => $lng['customer']['traffic'],
|
||||||
'type' => 'textul',
|
'type' => 'textul',
|
||||||
'value' => $result['traffic'],
|
'value' => $result['traffic'],
|
||||||
'maxlength' => 4,
|
'maxlength' => 14,
|
||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'ul_field' => $traffic_ul
|
'ul_field' => $traffic_ul
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ class nginx extends HttpConfigBase
|
|||||||
} else {
|
} else {
|
||||||
$_sslport = $this->checkAlternativeSslPort();
|
$_sslport = $this->checkAlternativeSslPort();
|
||||||
$mypath = 'https://' . Settings::Get('system.hostname') . $_sslport . '/';
|
$mypath = 'https://' . Settings::Get('system.hostname') . $_sslport . '/';
|
||||||
$this->nginx_data[$vhost_filename] .= "\t" . 'if ($request_uri !~ ^/.well-known/acme-challenge/\w+$) {' . "\n";
|
$this->nginx_data[$vhost_filename] .= "\t" . 'if ($request_uri !~ ^/.well-known/acme-challenge/[-\w]+$) {' . "\n";
|
||||||
$this->nginx_data[$vhost_filename] .= "\t\t" . 'return 301 ' . $mypath . '$request_uri;' . "\n";
|
$this->nginx_data[$vhost_filename] .= "\t\t" . 'return 301 ' . $mypath . '$request_uri;' . "\n";
|
||||||
$this->nginx_data[$vhost_filename] .= "\t" . '}' . "\n";
|
$this->nginx_data[$vhost_filename] .= "\t" . '}' . "\n";
|
||||||
}
|
}
|
||||||
@@ -487,7 +487,7 @@ class nginx extends HttpConfigBase
|
|||||||
// Get domain's redirect code
|
// Get domain's redirect code
|
||||||
$code = getDomainRedirectCode($domain['id']);
|
$code = getDomainRedirectCode($domain['id']);
|
||||||
|
|
||||||
$vhost_content .= "\t" . 'if ($request_uri !~ ^/.well-known/acme-challenge/\w+$) {' . "\n";
|
$vhost_content .= "\t" . 'if ($request_uri !~ ^/.well-known/acme-challenge/[-\w]+$) {' . "\n";
|
||||||
$vhost_content .= "\t\t" . 'return ' . $code .' ' . $uri . '$request_uri;' . "\n";
|
$vhost_content .= "\t\t" . 'return ' . $code .' ' . $uri . '$request_uri;' . "\n";
|
||||||
$vhost_content .= "\t" . '}' . "\n";
|
$vhost_content .= "\t" . '}' . "\n";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user