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

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:
    16
    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:
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    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