?
Solved

Directories failing to display

Posted on 2002-06-13
2
Medium Priority
?
178 Views
Last Modified: 2010-03-04
I am running Apache on RedHat 7.2 i386 platform.
I have directory Indexes turned off.
I have my DirectoryIdex set up correctly.
When I attempt to view my site I am immediately brought to the correct page.
However, once on the site if I try to get to a directory like:
http://mysite.com/directory
I get a 404 error.
But if I attempt to get to the directory by:
http://mysite.com/directory/
the default page for that directory displays.

Now say that another directory is password protected. If I attempt to get there by:
http://mysite.com/anotherdirectory
I am asked for the password, but no default page is displayed.

I want to be able to type in the directory without the trailing / and be brought to the directories default page. What is wrong with my configuration?

Thank you in advance,

Chris
0
Comment
Question by:bugsuperstar37
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
samri earned 800 total points
ID: 7077068
Chris,

You have hit the "trailing slash problem".

There are several possible fixes that is documented;
(I rather post the link than doing cut-and-paste).

- ServerName directive
Make sure you set the ServerName to the the actual servername that client is accessing.
From Apache FAQ;
http://httpd.apache.org/docs/misc/FAQ.html#set-servername

- mod_dir
Make sure the mod_dir.so is loaded in httpd.conf

From Apache docs;
http://httpd.apache.org/docs/mod/mod_dir.html

- mod_rewrite
http://httpd.apache.org/docs/misc/rewriteguide.html
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7080198
and your
   Options
directive for the appropriate directory/location contains
   Indexes
value too?
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question