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 and normal subdomains at the same time

Discussion in 'General Discussion' started by mojoinst, Oct 5, 2009.

  1. mojoinst

    mojoinst Registered

    Joined:
    Feb 15, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi All,

    I am running a domain on cPanel that is using wildcard subdomains, which is all functioning fine :)

    I now have the need to add an addtional subdomain that has a different web root directory (basicall outside of public_html directory).

    At present I have tried to add the subdomain in cPanel, but when i browse to http://sub.domain.com.au, it renders the contents of the public_html directory (IE: the wildcard subdomain is taking precedence).

    Any help on this would be very much appreciated,

    Kind regards,

    Mojoinst
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In a cPanel/WHM environment, the wildcard domain will always take higher precedence.
     
  3. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    You can manually add the vhost entries to an include file but it needs to be included before the wildcard one. Also, cpanel rebuilds the httpd.conf sometimes and changes can be reverted back.
     
Loading...

Share This Page