Redirect http to https Virtual Server GUI

When I manually set up Nginx website server blocks, I create two server blocks, one listening on port 80, one listening on port 443. I then add:

return 301 https://$server_name$request_uri;

to the port 80 server block for the website.

However, the configuration file that is ran when one adds a virtual server creates a single server block. Where is the GUI interface that will allow me to redirect the http to https for the website? When using Apache, one goes to the Configure Website and can put in a redirect from / to https://domain.tld. How is that done in the GUI when only running Nginx as the webserver?

Thanks.

Hi,

Where is the GUI interface that will allow me to redirect the http to https for the website?

Check Server Configuration/Website Options page:

Be default, this option can be set to be enabled on System Settings/Virtualmin Configuration page, under SSL Settings tab:

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