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!

how to modify Apache for the DNS

Discussion in 'Bind/DNS/Nameserver' started by cLub2Share, Nov 20, 2005.

  1. cLub2Share

    cLub2Share Well-Known Member

    Joined:
    Oct 4, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    united Arab Emirates
    cPanel Access Level:
    Website Owner
    Twitter:
    Hello

    Could someone please tell me first where do i find Apache in any Folder that i need to add DNS

    Example

    i need one of my domain name

    if user enter http://anything.thesite.com it will retern them to the main page i know there is something i need to modify in the apache but right know i dont

    if someone can take time to explain

    Thankyou very much :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    A server alias enry in httpd.conf should do the job

    ServerAlias *.domain name domain name

    Also edit the db record accordingly as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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