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.

Wildcard SSL Problem

Discussion in 'Security' started by tjep, Jul 20, 2012.

  1. tjep

    tjep Registered

    Joined:
    Jul 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,

    I requested a wildcard from the hosting company where a domain of a customer is hosted.
    The hosting company instructed me to use the htaccess to force the subdomain to recognise they gave the
    following example:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} ^443$
    RewriteCond %{HTTP_HOST} ^sub\.mydomain\.nl$ [NC]
    RewriteCond %{REQUEST_URI} !^/sub/
    RewriteRule ^(.*) /sub/$1
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    This works although i find it strange that i have to use this because the subdomain is in the /public_html root folder. Shouldnt the Wilcard SSL work out of the box without tinkering with the htaccess?

    The remaining problem is that the password protective directories dont work for the sub domains. I do get a popup login/pass box but its from the root domain not the subdomain.

    Any help is appreciated
     
  2. tjep

    tjep Registered

    Joined:
    Jul 20, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    nobody ?
     
Loading...

Share This Page