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.

Edit DNS zone to direct to https

Discussion in 'Bind / DNS / Nameserver Issues' started by sc00zy, Jan 2, 2006.

  1. sc00zy

    sc00zy Active Member

    Joined:
    Jan 2, 2006
    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Assen, The Netherlands
    I want to direct a subdomain like hosting.mydomain.com to an ip address with https. How do I do that when editting the DNS zone? If I fill in the IP it's http by default.

    This is what I have right now:

    hosting 14400 IN A 12.34.56.78
    www.hosting 14400 IN A 12.34.56.78

    Thanks in advance!
     
  2. nothsa

    nothsa Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    You're looking at 2 things here. The DNS will point the name to an IP address. On that IP address (server), you can have a multitude of things running including both http AND https. Neither http or https works "by default" as you say, it uses whatever the user enters in their address bar in their browser. I would suggest adding another DNS entry like:
    which will make secure.hosting.com point to the same IP, then redirect the user to https://secure.hosting.com/ when you want to send them to the secure site.
     
Loading...

Share This Page