HTTPS only website

4 posts / 0 new
Last post
#1 Thu, 05/20/2010 - 05:35

HTTPS only website


back again ;o) - I want to ask about setuping https only website. We got a wildcard certificate *.dom.tld - and I want to establish https websites by default (this can be setuped in virtualmin simply I know), but I want to redirect http -> https by default.

Is there any simple way how to configure my vitualmin installation in this way?

Just fully functional https and http redirected to https.

Thanks a lot.

Thu, 05/20/2010 - 09:31

There isn't an easy way to do that inside the Virtualmin GUI.

However, you can add a .htaccess file to your public_html folder that can do it.

It can be as simple as putting the following in your .htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]
Fri, 05/21/2010 - 01:49

Simple and functional - no problem.

Thu, 06/10/2010 - 10:49

I don't see why a new feature like this can't be added...

Currently you have:

Apache website enabled
SSL website enabled

Why can't they be exclusive of each other ? Makes no sense something like this can't be done, half of the code is already there.

Topic locked