correcting lighttpd settings
This commit is contained in:
@@ -435,13 +435,11 @@ class lighttpd extends HttpConfigBase
|
|||||||
|
|
||||||
// Get domain's redirect code
|
// Get domain's redirect code
|
||||||
$code = getDomainRedirectCode($domain['id'], '301');
|
$code = getDomainRedirectCode($domain['id'], '301');
|
||||||
|
|
||||||
$vhost_content .= ' $HTTP["host"] =~ "^(.*)$" {'. "\n";
|
$vhost_content .= ' url.redirect-code = ' . $code. "\n";
|
||||||
$vhost_content .= ' url.redirect-code = ' . $code. "\n";
|
$vhost_content .= ' url.redirect = (' . "\n";
|
||||||
$vhost_content .= ' url.redirect = (' . "\n";
|
$vhost_content .= ' "^/(.*)$" => "' . $uri . '$1"' . "\n";
|
||||||
$vhost_content .= ' "^/(.*)$" => "' . $uri . '$1"' . "\n";
|
$vhost_content .= ' )' . "\n";
|
||||||
$vhost_content .= ' )' . "\n";
|
|
||||||
$vhost_content .= ' }' . "\n";
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], $domain['guid'], true, true);
|
mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], $domain['guid'], true, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user