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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomains Not Working

Discussion in 'General Discussion' started by ccreighton, Sep 29, 2001.

  1. ccreighton

    ccreighton Active Member

    Joined:
    Aug 28, 2001
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    301
    On several of my sites I go into the cp and add a subdomain. The subdomain is created as well as a /cgi-bin directory but when I upload a file (regardless of extension html, php,etc) and then browse to the subdomain (i.e. testsub.mydomain.com) it shows the main site home page. Even if I call the uploaded page (i.e. testsub.mydomain.com/testpage.php) it shows the main site home page.

    I do know for a fact that the site does have subdomains enabled through the WHM link.

    Any suggestions?
     
  2. MichaelShanks

    MichaelShanks Well-Known Member
    PartnerNOC

    Joined:
    Aug 20, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    316
    check httpd.conf for

    namevirtualhost <sitesip>:80

    that should fix it

    Mike
     
  3. ccreighton

    ccreighton Active Member

    Joined:
    Aug 28, 2001
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    301
    Mike,

    Thanks that worked! I hate these little problems but it\'s cool when they get figured out.
     
Loading...

Share This Page