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
Hi sergey,
Perhaps you should add FollowSymLinks to your Options...