Question
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 www.atakama-studio.ca (/etc/apache2/sites-enabled/atakama-studio-ssl.conf:3)
*:80 is a NameVirtualHost
default server www.atakama-studio.ca (/etc/apache2/sites-enabled/atakama-studio.conf:1)
port 80 namevhost www.atakama-studio.ca (/etc/apache2/sites-enabled/atakama-studio.conf:1)
alias atakama-studio.ca
port 80 namevhost cloud.atakama-studio.ca (/etc/apache2/sites-enabled/cloud.atakama-studio.conf:1)
Here’s my ports.conf
pastebin.com/u3FNjT4R
here’s my atakama-studio.conf :
pastebin.com/PfZwvcmc
here’s my atakama-studio-ssl.conf :
pastebin.com/LkSjEMmp
I have both config enabled.
Please someone, help me !
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.
×