You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2015/02/18 11:47:15 UTC

[Bug 57591] New: DirectoryIndex directive cannot be overwritten

https://bz.apache.org/bugzilla/show_bug.cgi?id=57591

            Bug ID: 57591
           Summary: DirectoryIndex directive cannot be overwritten
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: mod_dir
          Assignee: bugs@httpd.apache.org
          Reporter: coolfire@insomnia247.nl

The ordering of index files cannot be overwritten in the httpd.conf

The default httpd.conf includes
DirectoryIndex index.html

If I try to overwrite this to prioritize .php over .html at a later point in
the httpd.conf or any included conf files it does not work and the original
setting in httpd.conf is still used.

Tested on:
2.2.22 (Debian 7)
2.4.6  (CentOS 7)
2.4.10 (Debian 8)
2.4.12 (Built from source on Debian 8)


Since we only manage a custom file that is included to avoid meddling with
package manager maintained files we'd prefer not to change httpd.conf itself.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 57591] DirectoryIndex directive cannot be overwritten

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57591

--- Comment #2 from Cool Fire <co...@insomnia247.nl> ---
(In reply to Christophe JAILLET from comment #1)
> Have you tried what is described in 
>    http://httpd.apache.org/docs/current/en/mod/mod_dir.html#directoryindex
> in example C?
> 
> If you first "disable" DirectoryIndex, you should then be able to set the
> ordering of your choice.

I have not tried this, but this is also not a solution to the problem. We
didn't want to change the package manager installed httpd.conf. If we did we
might as well set the correct order right away.

The problem is that you're not allowed to overwrite it after it's been set.
Most notably this also means that you cannot have a global default that can be
overwritten for a specific vhost.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 57591] DirectoryIndex directive cannot be overwritten

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57591

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #3 from Rich Bowen <rb...@apache.org> ---
Thank you for your report. As part of an effort to clean up our issue tracker,
we are closing tickets that have seen no activity for more than 10 years. If
this issue is still relevant to a current version of Apache httpd (2.4.x or
trunk), please reopen this ticket or open a new one with updated information.
We appreciate your contribution to the project.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 57591] DirectoryIndex directive cannot be overwritten

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57591

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
Have you tried what is described in 
   http://httpd.apache.org/docs/current/en/mod/mod_dir.html#directoryindex
in example C?

If you first "disable" DirectoryIndex, you should then be able to set the
ordering of your choice.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org