httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Bolton" <>
Subject Overriding httpd.conf SetHandler in .htaccess doesn't work
Date Tue, 05 Feb 2002 18:08:59 GMT

I'm having trouble overriding SetHandler directives in .htaccess (despite
having an "AllowOverride All" covering the directories concerned). My Apache
1.3.22 (WinNT) httpd.conf (inside a VirtualHost) looks a bit like:

 <Location />
  SetHandler perl-script

 <Location /ps>
  SetHandler default-handler

...which works fine. In the root, my Perl module is run, and in /ps/* it
isn't and I get normal, default behaviour.

What I would like to do is create /ps/cs/.htaccess that looks like:

	SetHandler perl-script
	... re-enable the Perl module in the /ps/cs directory. This works fine if
I create another <Location>...</Location> section in the httpd.conf file,
but not if I do it in .htaccess (no errors reported either).

I have found that it will work fine in .htaccess so long as I have not
specified any SetHandler on any directory above.

So, it looks as if I can set, but not override the SetHandler in .htaccess.
What am I doing wrong?


                    ...Ralph Bolton

Customer Support Engineer
Brokat UK Limited
Irongate House,
Duke's Place, Aldgate,
London. EC3A 7LQ
Tel: +44 (0)207 648 6249
Fax: +44 (0)207 626 0216

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message