?
Solved

Directories failing to display

Posted on 2002-06-13
2
Medium Priority
?
188 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
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

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month17 days, left to enroll

864 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