SSL/TLS Domain Issue
I have installed and enabled LetsEncrypt script in AutoSSL and it has been issued on all my domains The Let's Encrypt Plugin - cPanel Knowledge Base - cPanel Documentation
For some reason when I visit any of my domains it defaults to none-https. The only service/domain that has https enabled by default is whm/cpanel. Is there a way to fix this issue?
-
For some reason when I visit any of my domains it defaults to none-https.
Hello, This is normal unless you enter "https" in the address bar of your web browser. You could setup a redirect for each website using the instructions on threads like this one: Thank you.0 -
Create a .conf file in this directory /etc/apache2/conf.d/userdata or create a userdata.conf file in /etc/apache2/conf.d/ ? 0 -
Hello, Within the /etc/apache2/conf.d/userdata/ directory, as outlined at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Thank you. 0 -
I'll take a look at that thanks 0 -
Used the following steps. It still doesn't seem to work. Is there something I am doing wrong? Logged in as root Created userdata directory under /etc/apache2/conf.d/ Uploaded includename.conf to /etc/apache2/conf.d/userdata/ RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
/usr/local/cpanel/scripts/rebuildhttpdconf /usr/local/cpanel/scripts/restartsrv_httpd0 -
Hello, Try running the following command as well: /usr/local/cpanel/scripts/ensure_vhost_includes --all-users
Thank you.0 -
Hi, I have run that command. The domains are still not defaulting to https. Is there something else that could be misconfigured? In the config file, I've tried - RewriteCond %{HTTPS} yes and RewriteCond %{HTTPS} no 0 -
Hello, Have you tried clearing your browser cache or uploading a test HTML page and accessing it directly to rule out any issues with your browser cache or script configuration? Thank you. 0
Please sign in to leave a comment.
Comments
8 comments