Directories failing to display

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:
I get a 404 error.
But if I attempt to get to the directory by:
the default page for that directory displays.

Now say that another directory is password protected. If I attempt to get there by:
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,

Who is Participating?
samriConnect With a Mentor Commented:

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;

- mod_dir
Make sure the is loaded in httpd.conf

From Apache docs;

- mod_rewrite
and your
directive for the appropriate directory/location contains
value too?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.