Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Wildcard subdomains

Discussion in 'General Discussion' started by imagic, Sep 12, 2003.

  1. imagic

    imagic Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    166
    Can someone tell me the easiest way to make this work:

    Any subdomain points to the main domain.
    So, *.domain.com will all point to domain.com

    Thanks!

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,654
    Likes Received:
    75
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Add a wildcard A record to the domain's DNS zone file. Then edit the httpd.conf file and append to the ServerAlias part of that domain's VirtualHost entry:

    *.domain.com

    Should work.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice