Skip to content

Commit 3c8b817

Browse files
committed
Solved problem with vhost subs and aliases with ServerAlias-Command
1 parent 0a95e95 commit 3c8b817

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ function update($event_name, $data) {
10941094
}
10951095

10961096
// get alias domains (co-domains and subdomains)
1097-
$aliases = $app->db->queryAllRecords('SELECT * FROM web_domain WHERE parent_domain_id = '.$data['new']['domain_id']." AND active = 'y' AND (type != 'vhostsubdomain' OR type != 'vhostalias')");
1097+
$aliases = $app->db->queryAllRecords('SELECT * FROM web_domain WHERE parent_domain_id = '.$data['new']['domain_id']." AND active = 'y' AND (type != 'vhostsubdomain' AND type != 'vhostalias')");
10981098
$alias_seo_redirects = array();
10991099
switch($data['new']['subdomain']) {
11001100
case 'www':

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ function update($event_name, $data) {
13091309
}
13101310

13111311
// get alias domains (co-domains and subdomains)
1312-
$aliases = $app->db->queryAllRecords('SELECT * FROM web_domain WHERE parent_domain_id = '.$data['new']['domain_id']." AND active = 'y' AND (type != 'vhostsubdomain' OR type != 'vhostalias')");
1312+
$aliases = $app->db->queryAllRecords('SELECT * FROM web_domain WHERE parent_domain_id = '.$data['new']['domain_id']." AND active = 'y' AND (type != 'vhostsubdomain' AND type != 'vhostalias')");
13131313
$alias_seo_redirects = array();
13141314
if(is_array($aliases)) {
13151315
foreach($aliases as $alias) {

0 commit comments

Comments
 (0)