[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#587685: apache2: lenny8 rev broke DirectoryIndex processing



On Wednesday 30 June 2010, John Bazik wrote:
> Package: apache2
> Version: 2.2.9-10+lenny8
> Severity: normal
> 
> With the update from lenny7 to lenny8 a few days ago, my apache
> server began choosing the wrong DirectoryIndex files to serve.  I
> have a config snippet in /etc/apache2/conf.d/mod_dir that orders
> them like this:
> 
>         DirectoryIndex home.html home.htm home.shtml\
>                 index.html index.htm index.shtml index.xml
> 
> Directories with only home.html files work fine, but index.html is
> now preferred.
> 
> More weirdly, in debugging this, I removed the DirectoryIndex
> directive from /etc/apache2/mods-available/dir.conf, and that
> fixed it.  Since that file is processed before my snippet, I would
> expect my snippet to override it.  Since home.html files *are*
> being processed, it seems like the two directives are being
> combined instead.
> 
> I realize this makes no sense.  I looked at the changelog.  But
> I've got two web servers with different but similar configs that
> are both affected.  And in both cases, the only thing that changed
> was the new apache rev.

If you have several DirectoryIndex statements in the same section, 
they are merged. Only if you have DirectoryIndex statements in 
different sections, the last section to be merged wins. I strongly 
doubt that there was any behaviour change caused by the update.



Reply to: