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 DNS pointing to same directory??

Discussion in 'Bind / DNS / Nameserver Issues' started by MrNiceGuy, Mar 31, 2006.

  1. MrNiceGuy

    MrNiceGuy Registered

    Joined:
    Mar 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Im trying to install a script which creates subdomains for each user.

    The requirements were:
    - Wildcard DNS has to be enabled on server
    - *.domain.com & domain.com should point to the same directory

    I enabled Wildcard DNS through WHM. But how do I go about pointing *.domain.com & domain.com to the same directory?

    One of the script developer says that this is a functionality of cpanel that it puts subdomains in different directories.

    How do I do this?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    you need to edit your virt host container in your httpd.conf

    ServerAlias www.domain.com domain.com.com *domain.com
    DocumentRoot /home/meetcair/public_html/diryouwant


    restart apache
     
  3. MrNiceGuy

    MrNiceGuy Registered

    Joined:
    Mar 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks. That helped!
     
Loading...

Share This Page