[plug] problems with handlers in apache

Trevor Phillips phillips at central.murdoch.edu.au
Tue Aug 7 10:18:51 WST 2001


Gavin Corfield wrote:
> 
> I am having problems getting my handlers working, below is an extract
> from the httpd.conf file.

[snip]

> Has anyone got any ideas I have been staring at this for longer than I
> care to remember.

You've probably fixed it already, but there weren't any follow-ups on the list.

If not, well, SetHandler should take the name of the script directly, not a
MIME Type. ie:

SetHandler /cgi-bin/angazi/angazi.pl

Alternately, you can associate a CGI with an Extension:
AddHandler /cgi-bin/angazi/angazi.pl .angazi

Finally, you can associate a CGI as an Action to a MIME Type:

AddType application/x-angazi .angazi
Action application/x-angazi /cgi-bin/angazi/angazi.pl

Since you seem to want a location to be associated, rather than a file
extension, the first method is probably best.

-- 
. Trevor Phillips             -           http://jurai.murdoch.edu.au/ . 
: CWIS Systems Administrator     -           T.Phillips at murdoch.edu.au : 
| IT Services                       -               Murdoch University | 
 >------------------- Member of the #SAS# & #CFC# --------------------<
| On nights such as this, evil deeds are done. And good deeds, of     /
| course. But mostly evil, on the whole.                             /
 \      -- (Terry Pratchett, Wyrd Sisters)                          /



More information about the plug mailing list