Domain resolves to htdocs, not /home/ problem

jollymon

Member
Aug 28, 2006
22
0
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/

???????
 

ujr

Well-Known Member
Mar 19, 2004
290
0
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)