LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache DocumentRoot not display my files (https://www.linuxquestions.org/questions/linux-server-73/apache-documentroot-not-display-my-files-602575/)

kitek 11-26-2007 06:57 PM

Apache DocumentRoot not display my files
 
I have been working through some setup issues on a server with apache 2.0. Only think I have changed in the httpd.conf file is User_dir and added index.php to it for the searching. when doing localhost/~user/ everything works fine.
DocumentRoot in the .Conf I left default. etc/www/html. So when you run just localhost you get the default page. However I place a simple index.html that contained only hello its working and It still gets the default page. If I call the file such as localhost/index.html I get page can not be found. permission is set to 755? Any ideas of why its not acknowledging that there are files in the DocumentRoot.

kitek 11-27-2007 06:49 AM

No one has any idea?

david_ross 11-27-2007 12:51 PM

Moved: This thread is more suitable in Linux Server and has been moved accordingly to help your thread/question get the exposure it deserves.

What log message to you get in your error_log file?

dguitar 11-27-2007 01:49 PM

Quote:

Originally Posted by kitek (Post 2971631)
DocumentRoot in the .Conf I left default etc/www/html

Normally Default for apache is /var/www/html.

It can also be set in 2 places and is by default in your conf file.

You should see this line:
DocumentRoot "/var/www/html"

Then you should see this line:
<Directory "/var/www/html">

Make sure both of those are set to /etc/www/html or whatever you would like your DocRoot to be.


All times are GMT -5. The time now is 11:34 PM.