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.

SSL HTTPS just goes to IP

Discussion in 'General Discussion' started by MercyHosting, Jun 3, 2004.

  1. MercyHosting

    MercyHosting Registered

    Joined:
    Apr 24, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    One of my resellers is setting up a secure site, so I gave him a dedicated IP, moved the website there, he set up a Third level domain on that website, he got the cert for that tld, everything works good, except:

    1 if you go to http://www.bla.com it goes to the main site html
    2 if you go to http://www.bla.com/tld - 'tld' html
    3 if you go to http://tld.bla.com - 'tld' html
    4 if you go to http://IP/ main site
    5 if you go to https://tld.bla.com - main site encripted
    6 if you go to https://www.bla.com/ main site w/ cert fail
    7 if you go to https://tld.bla.com/tld -tld enc'd
    8 if you go to https://IP/ main site w/ cert fail

    now, shouldn't we be able to get (7) to happen where it should be on (5)?

    in otherwords, the https/cert is completely disregarding the domain entered, and just going to the main site (encripted)

    do I need to manually edit the http.conf or somthing every time to get it to resolve to the 'tld.bla.com' site instead of just the bla.com/IP based site?

    (I hope I didn't explain that too confusingly...)

    Bill C
     
  2. Noldar

    Noldar Well-Known Member

    Joined:
    Jun 26, 2002
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Ponchatoula, LA
    You'll need to find the entry for your ssl site and change the document root line from:
    Code:
    DocumentRoot /home/username/public_html
    
    to:
    Code:
    DocumentRoot /home/username/public_html/tld
    
    After making the change you'll need to restart apache.

    Richard
     
  3. MercyHosting

    MercyHosting Registered

    Joined:
    Apr 24, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    without...

    I'm assuming you mean in the httpd.conf

    I was looking for somthing I could do, so I wouldn't need to manually change the configuration ever site..
     
  4. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    207
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    This needs to be done manually thru the httpd.conf. There isn't any other way around it at this point.
     
Loading...

Share This Page