Question

How to exclude HTTP. Only need HTTPS.

Posted October 1, 2014 3k views

I have a website that is controlled by speech-recognition software. The user does not control the website. This website needs to be HTTPS only! I followed this document
to set up the HTTPS: How To Set Up Apache with a Free Signed SSL Certificate on a VPS.

I got it to work but now I want to remove HTTP.

I assume I have to do the following:

  1. nano /etc/apache2/sites-enabled/000-default and remove <VirtualHost *:80>

  2. sudo ufw deny http

I want to be able to use “www.mydomainname.com” or “mydomainname.com” and have it resolve to “https://....”

Is there anything else I need to do to make this happen?
Thanks

2 comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Assuming you are using centos check out this tutorial

Submit an Answer