Step 1

mkdir /etc/apache2/ssl

Step 2

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/owncloud.key -out /etc/apache2/ssl/owncloud.crt

Step 3

nano /etc/apache2/sites-available/default-ssl.conf

ServerName 10.0.0.235:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/owncloud.crt
SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key

Step 4

a2ensite default-ssl
a2enmod ssl

Step 5

nano /etc/apache2/sites-available/000-default.conf

Add redirect "/" https://YOUR-IP-ADDRESS/

Step 6

service apache2 restart

©2019 WiredZero.com
webmaster@wiredzero.com