You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kovacs Baldvin <ba...@angel.elte.hu> on 2004/03/29 16:29:41 UTC
[users@httpd] selected handler and mod_dir
Hi!
There is a change in the behaviour of mod_dir.c from apache1 to 2.
It can be delibarate, however, I did not find it mentioned in the docs.
I found it because it prevents working request tracker3 in debian.
The thing is that now if one has
<Directory ...>
SetHandler perl-script
...
then mod_dir.c will refuse to work, even for directories:
mod_dir.c, 2.0.49, line 126:
if (strcmp(r->handler, DIR_MAGIC_TYPE)) {
return DECLINED;
}
Too bad, since the intentions of the authors of the 3rd party program
were to let mod_dir.c send us to index.html, and then let perl-script
to handle it.
My question: is this change intentional? Removing those 3 lines simply
solves the problem...
However: if one really would like to force
the module set by "SetHandler" to handle everything, even directories,
than okey, leave it as it is, and one needs to rework request-tracker...
But I think in this case it should be empasized in the docs (maybe I
am fool, and I did not find it in the docs, sorry then...)
Best,
Baldvin
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] selected handler and mod_dir
Posted by Kovacs Baldvin <ba...@angel.elte.hu>.
An answer to myself (and apoligies for taking your time):
this way of operation of mod_perl is clearer and I think is better
than that of apache1 version.
Regarding the 3rd party sowtware I am looking into:
> <Directory ...>
> SetHandler perl-script
> ...
It seems that replacing their setting from
SetHandler perl-script
to
AddHandler perl-script .html
makes their program work even under apache2...
Best regards,
Baldvin
---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org