How does ip/~domainusername work in server

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


2 thoughts on “How does ip/~domainusername work in server

  1. This is extremely good. I was shocked to find this info so well assembled, definitely about to post this on facebook so the husband can see it. Cheers!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s