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.

subdomain in cPanel

Discussion in 'General Discussion' started by jasonman, Jul 9, 2014.

  1. jasonman

    jasonman Active Member

    Joined:
    Jul 2, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi all,

    How can I set the subdomain?

    For example: dx.domain.com subdomain to Document Root public_html/dx (domain.com/dx/index.html)

    But when I input the address dx.domain.com, it go to the page dx.domain.com/dx/index.html and show the no file page

    How can I set to domain.com/dx/index.html?

    Thanks!
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I think you have incorrect document root path of your subdomain. Please check the Document root path and change it

    Subdomains
     
  3. jasonman

    jasonman Active Member

    Joined:
    Jul 2, 2014
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Fixed the problem.
    Thanks!
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You are most welcome..!
     
  5. jda

    jda Registered

    Joined:
    Jul 14, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,
    To add to the question.... how can you password a directory that has been mapped to a jvm? You can password the physical directories but typing in the url brings up those files in the "passworded" directory. I need to have these files only accessed after a password eg /http://subdomain.mydomain/mainpage.html can only be accessed after a password. Any ideas?
    thanks,
    jda
     
Loading...

Share This Page