httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Vanuukov <vladat...@gmail.com>
Subject Re: [users@httpd] Using ExtFilterDefine to filter the output of a CGI command (Apache 2.2)
Date Fri, 07 Mar 2008 05:49:57 GMT
Just realized that the cgi script that is not getting filtered is a nph 
(non-parsed-headers) script. Other scrips in the same directory get 
filtered just fine. Any idea how to enable filtering for nph scripts?


Joshua Slive wrote:
> On Fri, Feb 29, 2008 at 3:48 PM, Vladimir Vanuukov <vladatnyc@gmail.com> wrote:
>   
>>  Hi, I can't seem to figure out how to get a filter defined by
>> ExtFilterDefine to filter the output of a cgi program (in this case
>> CGIProxy). I've been hitting my head against a brick wall for a day now and
>> i still can't get this to work.
>>
>>  I define the filter using
>>  ExtFilterDefine vlads mode=output cmd="/bin/sed
>> s/some_text/some_other_text/g"
>>
>>  Which appears at the very top of a site config file. Then inside of a
>> <VirtualHost *> i have
>>  SetOutputFilter vlads
>>
>>  I then define the cgi-bin using
>>     Alias /cgi-bin/ /usr/lib/cgi-bin/
>>      <Directory /usr/lib/cgi-bin>
>>         SetOutputFilter vlads
>>          AllowOverride None
>>          SetHandler cgi-script
>>          Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +Indexes
>>          Order allow,deny
>>          Allow from all
>>      </Directory>
>>
>>  When i go to any other page on this site the filter works, however the
>> output of the cgi scripts (CGProxy) goes through unfiltered. Any help would
>> be great
>>  There is nothing in the error log and nothign special in the access log
>> either.
>>     
>
> I don't see any particular problem with your setup.
>
> Have you tried turning up the logging using ExtFilterOptions?
> Have you tried activating using a <Location > instead of <Directory>?
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>   


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message