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 Subdomains on Addon Domain

Discussion in 'General Discussion' started by BeCheap.Net, May 17, 2009.

  1. BeCheap.Net

    BeCheap.Net Member

    Joined:
    Jun 3, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Illinois, USA
    I'm trying to setup Wildcard Subdomains on an Addon Domain.
    I edited the httpd.conf and changed ServerAlias to:

    Code:
    ServerAlias *.mydomain.com mydomain.com
    
    I also added * as a IN to the server IP

    Note: I'm running my own private nameservers. Is this possible or should I just create another account for this domain?
     
  2. BeCheap.Net

    BeCheap.Net Member

    Joined:
    Jun 3, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Illinois, USA
    Figured it out.

    Added Subdomain "*" to the addon domain under cPanel and had its document root the same as the Addon Domain's.

    Not sure if all that DNS editing helped, but oh well!
     
  3. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    Right. Adding the sub-domain '*' will do the trick. But that, in turn, will create a '* IN A' entry in the DNS zone file automatically ;)
     
Loading...

Share This Page