Skip to content

Commit

Permalink
Respect setting to redirect non-SSL to SSL https://forum.virtualmin.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 30, 2023
1 parent d29f9fe commit e36ae58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ sub feature_setup
# Update DANE DNS records
&virtual_server::sync_domain_tlsa_records($d);

# Redirect HTTP to HTTPS
if ($tmpl->{'web_sslredirect'} || $d->{'auto_redirect'}) {
&virtual_server::create_redirect($d, &virtual_server::get_redirect_to_ssl($d));
}

# Try to request a Let's Encrypt cert when enabling SSL post-creation for
# the first time
if (!$d->{'creating'} && $generated && $d->{'auto_letsencrypt'} &&
Expand Down

0 comments on commit e36ae58

Please sign in to comment.