How to enable HTTPS (SSL) automatically for Hostname?

SYSTEM INFORMATION
OS type and version UBUNTU 22.0.4
Virtualmin version 7.30.4

HELLO.

We just installed Virtualmin. And as you can see on the screenshot above, SSL is not work for Hostname URL.

PLEASE, how to make this possible and allow redirecting to HTTPS automatically for hostname URL without “www” in the URL (exactly like: https://host.domain_name.com) ???

AWAITING your answer.

Thanks @ID10T for your answer. It redirect automatically very well as you can see on this new another screenshot:

But as you can notice, it returns a “NOT SECURE” error and not automatically display the web page.

I need your help please.
How to fix that error ???

Simple don’t use the hostname as an entry point and don’t add a domain in virtualmin with the hostname. As soon as you add a domain you will be able to use that. For example your host name is
host.mydomain.com
Create
mydomain.com
As a vitual server in vitualmin and connect using
mydomain.com:10000
This will give you a secure connection

1 Like

Did you check the ‘redirect all to ssl’?

Thank you all for your answer.

@ID10T , yes redirect works but the problem is it is unsecure

@chegmarco
Looks like you used the server name for Virtual Server?
Are you trying this with self signed cert? This will not work

You will need a FQDN when creating a Virtual Server and using Let’s Encrypt to issue certificate.

As @jimr1 pointed out a few posts above

Since it is today that I configured the IP address of the VPS Server to the Domain Name, don’t you think that it is perhaps due to the DNS propagation which has not yet been done ???

Please reread @jimr1 and my post again

You’re getting answers to your original question. You should open a new topic for new questions, so you’ll get answers to your new problem.

Getting a Let’s Encrypt certificate is not the same problem, so open a new topic about whatever problem you’re having getting a Let’s Encrypt certificate for your virtual host names and aliases. (It’s often a DNS problem, and the error you get when you try to issue a certificate is usually exactly the problem you need to solve.)

https://forum.virtualmin.com/guidelines

“propagation” gets tossed around a lot without people understanding what it means. It’s probably not propagation, it’s probably misconfiguration. Open a new topic if you have DNS questions.

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