I'm curious to know whether there's anything in your
error_log if Debug is set to -2 for Apache::ASP, to 
see if Apache::ASP is handling the .asp request
and not returning the right error code.  It should 
return the 404 just fine though and the ErrorDocument
should pick it up from there.

--Joshua

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051




BeerBong wrote:
> 
> Hello all!
> 
> I have a two apache server model (front-end - simple, back-end - power)
> 
> I want return custom page on 404 status.
> .asp, .pl files are passed to back-end via mod_rewrite on simple Apache (I'm
> using Apache::ASP).
> 
> When I trying to access
> 1. /not_existing_file - works cgi script on simple, works fine
> 2. /not_existing_file.asp - I get standart not found message, generated by
> browser!
> although
> 3. /cgi-bin/error.pl - returns normal output generated by power apache.
> 
> It seems that ErrorDocument for power Apache doesnt work...
> How I can fix this problem ? :(
> 
> Part of httpd.conf
> -----------------------------------
> <IfDefine simple>
>   ScriptAlias /cgi-bin/ /usr/web/cgi-bin/
>   <Location /cgi-bin>
>     SetHandler cgi-script
>   </Location>
>    ErrorDocument 404 /cgi-bin/error.cgi
> </IfDefine>
> <IfDefine power>
>   Alias /cgi-bin /usr/web/cgi-bin
>   <Location /cgi-bin>
>     SetHandler perl-script
>     PerlHandler Apache::Registry
>     Options ExecCGI
>     PerlSendHeader On
>   </Location>
>   ErrorDocument 404 /cgi-bin/error.pl (error.pl is symbolic link to
> error.cgi)
> </IfDefine>
> -----------------------------------
> 
> ----------------------------------------------
> Sergey Polyakov - chief of WebZavod
> http://www.webzavod.ru

Reply via email to