Mailing List Archive

dot problem
We traced the ".index.html" problem.

It *is* being configured properly, but if any .htaccess file
refers to index specific options, then the DirectoryIndex setting
gets thumped i.e. .index.html is dropped and index.html used instead.

examples,

with DirectoryIndex set to foo.html all works as expected until a
.htaccess file is encountered which refers to

IndexIgnore
AddDescription

and maybe others too.


I had a look at the code but couldn't trace back very far to work
out what was going on.


rob
Re: dot problem [ In reply to ]
>
> It *is* being configured properly, but if any .htaccess file
> refers to index specific options, then the DirectoryIndex setting
> gets thumped i.e. .index.html is dropped and index.html used instead.
>
> [examines code]
> [kicks self repeatedly]

Better than

[examines self repeatedly]
[kicks code]

I suppose.

> Try this...

I've passed it on, assume it works unless you hear otherwise.

thanks.
Re: dot problem [ In reply to ]
It *is* being configured properly, but if any .htaccess file
refers to index specific options, then the DirectoryIndex setting
gets thumped i.e. .index.html is dropped and index.html used instead.

[examines code]
[kicks self repeatedly]

Try this...

*** mod_dir.c~ Sat Aug 12 10:33:47 1995
--- mod_dir.c Wed Aug 16 13:14:01 1995
***************
*** 258,264 ****
dir_config_rec *new =
(dir_config_rec *) pcalloc (p, sizeof(dir_config_rec));

! new->index_names = DEFAULT_INDEX;
new->icon_list = make_array (p, 4, sizeof (struct item));
new->alt_list = make_array (p, 4, sizeof (struct item));
new->desc_list = make_array (p, 4, sizeof (struct item));
--- 258,264 ----
dir_config_rec *new =
(dir_config_rec *) pcalloc (p, sizeof(dir_config_rec));

! new->index_names = NULL;
new->icon_list = make_array (p, 4, sizeof (struct item));
new->alt_list = make_array (p, 4, sizeof (struct item));
new->desc_list = make_array (p, 4, sizeof (struct item));
***************
*** 757,763 ****
{
dir_config_rec *d =
(dir_config_rec *)get_module_config (r->per_dir_config, &dir_module);
! char *names_ptr = d->index_names;
int allow_opts = allow_options (r);

if (r->method_number != M_GET) return NOT_IMPLEMENTED;
--- 757,763 ----
{
dir_config_rec *d =
(dir_config_rec *)get_module_config (r->per_dir_config, &dir_module);
! char *names_ptr = d->index_names ? d->index_names : DEFAULT_INDEX;
int allow_opts = allow_options (r);

if (r->method_number != M_GET) return NOT_IMPLEMENTED;