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 Mapping [moved]

Discussion in 'General Discussion' started by ThaSpY, Sep 27, 2005.

  1. ThaSpY

    ThaSpY Registered

    Joined:
    Sep 27, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    BC, Canada
    Subdomain Mapping

    Hello,

    I am a user of cPanel, and I have a question on how subdomains are currently set up.

    Using the xcontroller theme, when I create a subdomain, it currently maps it to its respective folder in public_html/, allowing users to access it from http://sub.domain.com/ as well as http://www.domain.com/sub/.

    I do not want the latter option to exist, so my question is, is it possible to change where subdomains are mapped to? I would prefer it to map them to a subdomains/ folder outside of the public_html/ folder.

    There are many frustrating reasons for this request, so any help would be appreciated. Thanks!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It can be done, but only your hosting provider can help you by manually modifying the servers httpd.conf for each subdomain. Otherwise, that's simply the way cPanel does things.
     
  3. ThaSpY

    ThaSpY Registered

    Joined:
    Sep 27, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    BC, Canada
    That brings me to my next question. Where is httpd.conf located and how can I access it? I have root access to the server, I just can't seem to find a file manager or anything above domain level access in cpanel.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You'll need to login to the root shell using SSH or SFTP. The apache configuration is in /usr/local/apache/conf/httpd.conf
     
Loading...

Share This Page