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!

Domain resolves to htdocs, not /home/ problem

Discussion in 'General Discussion' started by jollymon, Sep 10, 2006.

  1. jollymon

    jollymon Member

    Joined:
    Aug 28, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    Well After a while here and some learned experiences I have hit a wall again. My domain name resolves (from my nameservers) to my apache/htdocs. I want to have it resolve to my /home/folder/

    ???????
     
  2. ujr

    ujr Well-Known Member

    Joined:
    Mar 19, 2004
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    166
    You could set this in your httpd.conf... An example ensues:

    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    #
    #<Directory /home/*/public_html>
    # AllowOverride FileInfo AuthConfig Limit
    # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    # <Limit GET POST OPTIONS PROPFIND>
    # Order allow,deny
    # Allow from all
    # </Limit>
    # <LimitExcept GET POST OPTIONS PROPFIND>
    # Order deny,allow
    # Deny from all
    # </LimitExcept>
    #</Directory>


    ALSO NOTE: In your WHM's setup, (Main >> Server Configuration >> Basic cPanel/WHM Setup) make sure that the following are set:

    Default Home Directory: /home
    Home Directory Prefix: home (without the slash)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice