Redirect all requests to SSL site not working anymore

SYSTEM INFORMATION
OS type and version Debian 10
Webmin version 2.001
Virtualmin version 7.3-1
Related packages NGINX

After tagging “Redirect all requests to SSL site” to yes

if ($scheme = http) {
		rewrite "^\Q^/(?!.well-known)(.*)$\E(.*)" "https://%{HTTP_HOST}/$1$1" break;
	}

is written to the config file which a) doesn’t work and b) the redirect setting is not persistent at virtualmin. If I try it again, the same entry is writenn a 2nd time and so on.

Before the last update this code was written

if ($scheme = http) {
		rewrite ^/(?!.well-known)(.*) https://domainname.tld/$1 break;
	}

If I insert that manually a) it works and b) the “yes” checkbox stays checked.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.