I have created a file named "test.html" and it resides at "/data/temp/test.html" location. Now i have changed the document root from /var/www/html to /data/temp/test.html. Now when i restart, it shows the following error:
[root@ind-mhp1v12lnx02 temp]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 292 of /etc/httpd/conf/httpd.conf:
DocumentRoot '/data/temp/test.html' is not a directory, or is not readable
Now when i go to apache web page using the server ip, i need to see the content in test.html. What should i do?