Your comments

I'm using Cloudflare Universal SSL but this should work fine for a local cert as well. In the AjentiV dashboard, go to Websites -> yourwebsite.com -> Advanced and enter the following directive in the Custom Configuration text box:


if ($http_cf_visitor ~ '{"scheme":"http"}') {
return 301 https://$server_name$request_uri;
}


This is the only way I've found to avoid redirect loops while still working solely in the AjentiV UI. Hope it helps!