Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-02-2007, 02:51 AM   #1
LQ Newbie
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Question Apache displays directories but not files

Hi. Hoping someone can help.

I am running red hat 4 and apache 2.
I have set up apache webserver to serve my redhat distribution. My problem is when i browse to the document root "var/www/html" I can see the Rhinstalltree folder and any folders below it. But I do not see any files. I am using a pretty much default install with auto_indexing module loaded but i think something might be wrong in my httpd.conf file in the options directive:

DocumentRoot "/var/www/html/"
<Directory />
Options Indexes FollowSymLinks
AllowOverride None

<Directory "/var/www/html/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

Any help will be greatly appreciated,,,

Old 10-29-2007, 11:23 AM   #2
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 106
Blog Entries: 1

Rep: Reputation: 15
I suspect that it does not like the / at the end of your document path.

If that does not help, let me see more of the httpd.conf file and we can see if there is some other problem.
Old 10-29-2007, 02:23 PM   #3
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
Originally Posted by gungarlin
My problem is when i browse to the document root "var/www/html"
What do you mean when you browse there? Shouldn't you be browsing to http://localhost instead?

If you just mistyped something, and you are indeed trying to hit that server by a valid IP or domain name, make sure you have your default file listed in your DirectoryIndex option in your httpd.conf. It should read something like:
DirectoryIndex index.php index.cgi index.shtml index.html index.htm index.html.var
remove the ones you don't use from that, I just put them all in there as an example.

There's nothing wrong with a trailing slash
Old 10-29-2007, 11:37 PM   #4
LQ Newbie
Registered: May 2006
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks to those who took time to respond to my question.
I was able to resolve the problem by creating a new folder and copying the contents of Rhinstalltree to the new folder. Then deleting the 'Rhinstalltree' folder and renaming the new folder to Rhinstalltree. Everything works fine now. Thanks once again.....



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying files and sub-directories of a directory except the directories named ".abc" sri1025 Linux - General 2 08-24-2010 08:53 AM
Apache displays start page in Hebrew rcschroeder Slackware - Installation 1 01-12-2007 07:25 PM
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 03:22 PM
Apache displays html code tlmii Linux - Software 3 06-09-2004 11:07 AM
apache displays .cgi file instead of executing it hewsonism Linux - Software 2 01-13-2004 09:12 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration