Question

How can i make my Droplate miroring be HTTPS?

Posted August 23, 2020 102 views
CentOS

can any one teach or help me how can i make my Droplets be HTTPS?
im using putty
and this script i using.

<VirtualHost *:80>
ServerName localhost
DocumentRoot    /var/www/html/
DirectoryIndex  index.php

ProxyPass "/" http://domain.com//
ProxyPassReverse "/" http://domain.com//
ProxyPass "/img" http://domain.com//img/ retry=1 acquire=3000 timeout=3000
ProxyPassReverse  "/img" http://domain.com//img/

RewriteEngine on
RewriteRule ^/img/(.*)/(images|javascripts|stylesheets)(.*) http://domain.com//

</VirtualHost>
edited by MattIPv4

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

Hi there @danzoff1990,

You can use Let’s Encrypt for example to obtain a free SSL certificate. To do so you can follow this step by step guide here:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

Regards,
Bobby

by Kathleen Juell
by Erika Heidi
Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. In this tutorial, you will use Certbot to obtain a free SSL certificate for Apache on Ubuntu 18.04 and set up your certificate to renew automatically.
Submit an Answer