Skip to main content

SSL/TLS Domain Issue

Comments

8 comments

  • cPanelMichael
    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
  • tdot
    Create a .conf file in this directory /etc/apache2/conf.d/userdata or create a userdata.conf file in /etc/apache2/conf.d/ ?
    0
  • cPanelMichael
    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
  • tdot
    I'll take a look at that thanks
    0
  • tdot
    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_httpd
    0
  • cPanelMichael
    Hello, Try running the following command as well: /usr/local/cpanel/scripts/ensure_vhost_includes --all-users
    Thank you.
    0
  • tdot
    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
  • cPanelMichael
    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.