Bug in "Website Options" > Redirect all requests to ssl (NGINX)

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.5
Webmin version 2.013
Usermin version 1.861
Virtualmin version 7.5
Theme version 20.13
Package updates All installed packages are up to date

I have a Virtualmin-Setup with NGNIX.

If I do try to add an redirect to ssl for all requests on http, (on a SubServer), I got this errror:

The Code added in the vhost-file looks like this:

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

BTW: Another bug, If I go again into this GUI-Section, the Radio-Button is set to default (means SSL redirect = NO), If I do activate it again, save it and look into the vhost-file, there are two redirects:

As often as I come back to the UI and save, as many additional rewrite entries are added to the VHOST-File

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