How does ip/~domainusername work in server
How does ip/~username point to public_html instead of /home/username in server.
Solution : Its done by “UserDir”
httpd.conf might have an entry as below
=================
root@server [~]# grep UserDir /usr/local/apache/conf/httpd.conf
UserDir public_html
=========================
Thats what is specifying the document root.
By default “UserDir” is enabled.
To disable we can use :
UserDir disabled user4 user5 user6