Skip to content

Commit 517e8df

Browse files
author
Till Brehm
committed
Merge branch '4325-redir-off' into 'develop'
Disable http to https redirect when SSL is turned off Closes #4325 See merge request ispconfig/ispconfig3!1170
2 parents e255b99 + f0cc342 commit 517e8df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,10 @@ function update($event_name, $data) {
14911491
$tpl->setVar('rewrite_enabled', 0);
14921492
}
14931493

1494+
if($data['new']['ssl'] == 'n') {
1495+
$tpl->setVar('rewrite_to_https', 'n');
1496+
}
1497+
14941498
//$tpl->setLoop('redirects',$rewrite_rules);
14951499

14961500
/**

0 commit comments

Comments
 (0)