Can't get https to work

Just can’t get this to work. I have a Wordpress installation on LAMP stack. I’m also using Cloudflare CDN. I have the certificates from Let’s encrypt. I’m able to access the site from http no problem with a Virtual Host configuration (non-ssl).

I’ve made a new configuration to be able to access my site with SSL, but when trying to go to the https address, i’m getting redirected to http.

I’m pretty sure that the ports are open in UFW.

Right now, I have three virtual host configuration, one for cloud.atakama-studio.conf, I will want this one to be secure, but i’ve started with the main site for now, atakama-studio.conf, and i’ve done a atakama-studio-ssl.conf. I don’t mind having everything in the same vhost configuration for atakama-studio, but i’m not sure I want all the site to be secure, maybe only the form page…

Here’s my VirtualHost configuration: *:443 (/etc/apache2/sites-enabled/atakama-studio-ssl.conf:3) *:80 is a NameVirtualHost default server (/etc/apache2/sites-enabled/atakama-studio.conf:1) port 80 namevhost (/etc/apache2/sites-enabled/atakama-studio.conf:1) alias port 80 namevhost (/etc/apache2/sites-enabled/cloud.atakama-studio.conf:1)

Here’s my ports.conf

here’s my atakama-studio.conf :

here’s my atakama-studio-ssl.conf :

I have both config enabled.

Please someone, help me !

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Where can I find a recent exemple of https configuration for apache 2.4 with the right SSLCipherSuite, etc ?

I’ve changed AllowOverride to All on my SSL config file and it’s now working. Yeaaaa

Thanks. I’ve made the change. I also enabled full SSL in Cloudflare. I can now access my admin section with a green HTTPS and the index page of my site, but It broke my other pages. I tried to save the modification on permalinks. I’ve enabled SSL for the front-end of the site in iThemes Security. Something is still missing somewhere…