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.

nonexistantsubdomain.domain.com -> domain.com

Discussion in 'General Discussion' started by AtomixNetwork, Dec 15, 2004.

  1. AtomixNetwork

    AtomixNetwork Member

    Joined:
    Nov 27, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    I am trying to make it so that if someone puts in something like abc123.domain.com (which is non existant) to redirect to domain.com.

    I've tried making it:

    * IN CNAME domain.com (in the edit a DNS Zone [WHM]).. it sort of works.. but when i go to somethingnonexistant.domain.com, it displays a CPanel no site configured at this address page.

    I've seen http://forum.powweb.com/showthread.php?t=2461 (related)

    Doesn't seem to work..

    Any help would be appreciated :)
     
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I've had this working, I think from memory you have to make sure the site has an IP and then it works. The problem is that the virtual container isn't working, and at the time the only fix seemed to be giving the site it's own IP, although I'm sure there are other ways to make the virtual host bit work (in httpd.conf).
     
Loading...

Share This Page