What version of Apache are you using, on which platform ?
Can you give us you whole configuration file ? What you are telling us about your configuration, and the URLs which you mentioned in your first post, do not match.
About this :
<VirtualHost x.x.x.x:8081>
Are you sure that you are really using name-based virtual hosts, or is this an address-based virtual host scheme ?
In any case, the following lines are probably incorrect :
    ServerName x.x.x.x:8081
    ServerAlias x.x.x.x:8081
ServerAlias should not include a port number. ServerName can include one, but only if you really know what you are doing.
What do your "Listen" and "NameVirtualHost" directives look like ?

The reason for all the questions and remarks above is : under Apache 2.x, there are hundreds or thousands of systems where the DirectoryIndex works exactly as expected. So the problem in all likelihood is not with Apache, but with something in your configuration which prevents it from working. But the information you provide seems incomplete or inaccurate, so it is difficult to help you.


jwberger wrote:
How do I check to see if it is inheriting.  Also, I tried adding the
DirectoryIndex in the VirtualHost section, but it still did not work.

John


awarnier wrote:
With the configuration structure show below, your DirectoryIndex statement does not apply to the VirtualHost section. It applies to the "main" configuration. When you use name-based VirtualHost sections, whetever is outside of them normally only specifies defaults, overridden (or not) by the directives in each VirtualHost section. However, not all directives are automatically "inherited" by VirtualHost sections. You should check if this one is.



jwberger wrote:

Here is the some of the information from my conf file.

<VirtualHost x.x.x.x:8081>
    ServerAdmin ad...@localhost
    DocumentRoot "D:/docs"
    ServerName x.x.x.x:8081
    ServerAlias x.x.x.x:8081
    ErrorLog "logs/partners3/error.log"
    CustomLog "logs/partners3/access.log" common
    SetEnvIf Remote_Addr "x\.x\.x\.x" dontlog
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^TRACE
    ReWriteRule .* - [F]
</VirtualHost>


ServerAdmin ad...@localhost


ServerName x.x.x.x:8081

DocumentRoot "D:/docs"


<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


<Directory "D:/docs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>


John

Igor Cicimov wrote:
404 means "file not found" which means you don't have any index.html
file
in
the other folders you try to access.

On Thu, Oct 8, 2009 at 5:58 AM, jwberger <jwberge...@hotmail.com> wrote:

I am having an issue with the DirectoryIndex. We have it set as
DirectoryIndex index.html  We have a site the runs at
https://www.site.com
.
When we hit that site as shown it comes up fine because there is an
index.html file there.  However, if we go further down to
http://www.site.com/tpg or http://www.site.com/tpg/docfiles/online
either
with or without the ending /, we get a 404 error.  I have tried moving
the
DirectoryIndex to different areas of the conf file but cannot get it to
work.  I know this is probably very basic, but I just cannot figure it
out.
Thanks for any assistance.

John
--
View this message in context:
http://www.nabble.com/Issue-with-DirectoryIndex-tp25792416p25792416.html
Sent from the Apache HTTP Server - Users mailing list archive at
Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to