How does ip/~username work in server

ARUN Post in HTTPD, WHM BACKEND, WHM FRONTEND
0

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 :

=================

[email protected] [~]# grep UserDir /usr/local/apache/conf/httpd.conf
UserDir public_html
[email protected] [~]#
=========================
Thats what is specifying the document root.
By default "UserDir" is enabled.
To disable we can use :
UserDir disabled user4 user5 user6
http://httpd.apache.org/docs/2.0/mod/mod_userdir.html
« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.