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

configuring handlers in apache



I am having trouble configuring the handlers for a cgi script in
apache.  The following setup works on a red hat machine but not on my
debian server (potato).  

<VirtualHost 192.168.1.1>
ServerAdmin gavin@twobluedots.com.au
DocumentRoot /home/angazi/web
ServerName 192.168.1.1
ErrorLog /var/log/apache/server-error.log
TransferLog /var/log/apache/server-access.log

Addtype text/html .shtml .htm .html .stm
AddHandler server-parsed .shtml .html .stm
ScriptAlias /cgi-bin/ "/home/angazi/cgi-bin/"


<Location /angazi>
SetHandler application/x-angazi
Action application/x-angazi /cgi-bin/angazi/angazi.pl 
</Location>

I get the following error in the log when I point a browser at
192.168.1.1/angazi, however if I point it at
192.168.1.1/cgi-bin/angazi/angazi.pl I get the script exectuing
correctly


[Mon Aug 20 17:07:14 2001] [warn] [client 192.168.1.2] handler
"application/x-angazi" not found for: /home/angazi/web/angazi
[Mon Aug 20 17:07:14 2001] [error] [client 192.168.1.2] File does not
exist: /home/angazi/web/angazi


however if I point it at 192.168.1.1/cgi-bin/angazi/angazi.pl I get the
script exectuing correctly

Is there some significant difference between the apache setup in debian
and redhat?

any suggestions much appreciated.

gavin



Reply to: