Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thx for the turorial,
but it only works for me with firefox 61(64bit), chrome 68 and edge 42 won’t work.
i don’t use a domain, only ip
failure: DLG_FLAGS_INVALID_CA
Very refreshing to see step by step guidance in Linux which is up-to-date, complete and does not make any assumptions about the knowledge of the user. (It worked!)
HEY!!! I got ubuntu 16.04.4 on lightsail… would this tutorial work ?..
Thanks
I used this guide since ubuntu 16.04 and even in ubuntu 18.04, but in my new install of ubuntu 18.04, i follwed the same steps but no error in following the steps, but while accessing the site from browser (firefox or opera), the following error is thrown:
In Opera:
This site can’t provide a secure connection <ip address> uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH null
Unsupported protocol The client and server don’t support a common SSL protocol version or cipher suite.
In Firefox:
An error occurred during a connection to <ip address>. Cannot communicate securely with peer: no common encryption algorithm(s). Error code: SSL_ERROR_NO_CYPHER_OVERLAP
Just created this Droplet, and following the instructions I get the following error:
– Unit apache2.service has begun starting up. Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 apachectl[1305]: AH00526: Syntax error on line 1 of /etc/apache2/conf-enabled/ssl-params.conf: Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 apachectl[1305]: Invalid command ‘SSLCipherSuite’, perhaps misspelled or defined by a module not included in the server Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 apachectl[1305]: Action ‘start’ failed. Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 apachectl[1305]: The Apache error log may have more information. Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: apache2.service: Control process exited, code=exited status=1 Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: apache2.service: Failed with result ‘exit-code’. Dec 15 16:47:33 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: Failed to start The Apache HTTP Server.
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 SSLHonorCipherOrder On
Header always set X-Frame-Options DENY Header always set X-Content-Type-Options nosniff
SSLCompression off SSLUseStapling on SSLStaplingCache “shmcb:logs/stapling-cache(150000)”
SSLSessionTickets Off
for those wanting to turn on directory privacy (follow this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-16-04)
In order for you to then be able to redirect HTTP to HTTPS AND have the authentication enabled, add this block of code into Step 2, under /etc/apache2/sites-available/default-ssl.conf
<Directory /var/www/html>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
So, the top of your default-ssl.conf will look like this,
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
<Directory /var/www/html>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
ServerAdmin webmaster@localhost
.......................rest of file code...............
Finally, once you get to Step 6 of this tutorial, just add in:
Redirect permanent "/" "https://your_domain_or_IP"
I was able to achieve HTTP redirect to HTTPS with directory privacy enabled. You must add that block of code above to default-ssl.conf (similar to how you do it in the ‘how-to-set-up-password-authentication-with-apache-on-ubuntu-16-04’ tutorial, and you must complete that tutorial as well to even enable password authentication on Apache).
Hope this helps someone!
I successfully completed all of the steps until Step 4, but can’t connect to http://FQDN-HOSTNAME or https://FQDN-HOSTNAME where FQDN-HOSTNAME is my fully qualified domain name for my web server.
Can anyone please point me in the right direction, and help troubleshoot this issue?
$ curl -verbose https://FQDN-HOSTNAME