Configuring Apache an php Directory root.

Hi ,

I have installed apache and configured Document root as /home

DocumentRoot "/home"

The files under home directory is listed on the web server, i have one text file under "/home/test/1.txt" i can view the file when i set DocumentRoot to /home.

But when i change Document root to

DocumentRoot "/var/www/html"

i am not able to view the file
which is under test dir i.e the file

/home/test/1.txt

Can anyone please help me how to configure apache httpd.conf file such that
Document root must be

/var/www/html

and in mean time i can able to list and view/open file which is under my directory

/home/user/test/

through web browser.

:confused:

Under /var/www/html create a soft link to your directory /home/user/test/

1 Like