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.

Help on subdomains!

Discussion in 'General Discussion' started by haris_led, Aug 26, 2007.

  1. haris_led

    haris_led Registered

    Joined:
    Apr 8, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello, i want to know how it is possible via cpanel to configure apache server not to link the subdomains to: example.com/test but only to: test.example.com.

    Right now when i create a subdomain (named test) both test.example.com and example.com/test are linked to the files that are under /home/example/public_html/test folder.

    I just want the whole "subdomain folder" not to have access from example.com/test.
    Only from test.example.com.

    Is this possible to happen via cpanel, or i have to change values in the apache's conf?:confused:

    Thanks a lot! :)
     
  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
    When you create the subdomain, place its document root outside of public_html when prompted on where to place the files for that subdomain.

    If you do not see that prompt, ensure you are running cPanel version 11 with the X3 theme.
     
    #2 cPanelDavidG, Aug 27, 2007
    Last edited: Aug 27, 2007
Loading...

Share This Page