The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomain Document Root

Discussion in 'General Discussion' started by Ravi Ranchod, Jul 13, 2016.

Tags:
  1. Ravi Ranchod

    Ravi Ranchod Registered

    Joined:
    Jul 13, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Birmingham
    cPanel Access Level:
    Website Owner
    Hi, I've got a domain on my server which has various subdomains. I have purchased a Wildcard SSL Certificate which will allow me to secure the domains and subdomains through HTTPS.

    The problem I'm having is that all the subdomains have a Document Root which points to a different folder. This work fine when accessing the subdomain without HTTPS but when I access the subdomain with HTTPs, the path it points to is the server root folder.

    This leads me to believe that the subdomain document root isn't applied to the domains when visited through HTTPS.

    http://sub.domain.com -> /pages/index = Correct
    https://sub.domain.com -> /index = Incorrect

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,776
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    A wildcard certificate allows you to install the same certificate on any number of subdomains if they share an IP address. Have you tried installing the wildcard certificate on each individual subdomain to see if it allows them to load the correct content?

    Thank you.
     
Loading...

Share This Page