LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-02-2007, 02:51 AM   #1
gungarlin
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>

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

Any help will be greatly appreciated,,,

Gungarlin...
 
Old 10-29-2007, 11:23 AM   #2
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 105
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
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
Quote:
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:
Code:
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
gungarlin
LQ Newbie
 
Registered: May 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

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.....
 
  


Reply

Tags
apache


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


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

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