ahmershuja wrote:I also tried, but the index.html giving problem its redirect to xampp folder, but if i rename that file vhost doesn't work at all.
is there any expert can help...
thx. in advance...
In httpd.conf you will find the following lines:
# User home directories
Include etc/extra/httpd-userdir.conf
So look in this file to read all about user home directories. You will find:
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html
I have reset my UserDir to
UserDir /home/*/public_html
Now I can serve any user defined on my system as follows:
http://url/~user (replace "user" by the actual user name). The user has to copy all his application files to his own public_html subdirectory.