Peter, yes, you're right, mod_ext_filter doesn't appear in the list. I
have a far-fetched hope that this module may be part of the "core"
modules, as the proxy module seems to be. Unlikely, I admit.

I saw a set of instructions for adding a custom module to Apache. I'll
take a look and see if it's a practical option.

Alan

On 12/23/2011 11:12 PM, Peter Connell wrote:

Alan,
I think if you run the STRTCPSVR cmd for any instance using option -l you'll find that mod_ext_filter is not one of the modules in the list.

The only way I could see to gain control over the output filter process was to write my own Apache filter module, an arcane process, and something of a black art from my perspective.
To achieve this you probably need to understand how Apache requires a data export from your module also about registering hooks for Apache.
The thing gets implemented by adding an Apache directive like
LoadModule mytest_module /QSYS.LIB/MYTEST.LIB/MYFILTER01.SRVPGM
And SetOutputFilter MYFILTER to the relevant Directory container

Cheers, Peter



-----Original Message-----
From: [1]web400-bounces@xxxxxxxxxxxx [[2]mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Alan Seiden
Sent: Saturday, 24 December 2011 7:15 a.m.
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] mod_ext_filter module for Apache?

Jack, right. The ExtFilterDefine directive is not accepted. What I don't
know is whether I need to use a specific LoadModule directive, or if the
module isn't supplied.

On 12/23/2011 8:38 AM, Jack Kingsley wrote:

If you add it, does it throw/error it out in your log file after you recycle the server instance.

On Thu, Dec 22, 2011 at 8:31 PM, Peter Connell [1][3]<Peter.Connell@xxxxxxxxxx>wrote:


Hmm,
I recall having to write one in C a while back but it never got to be used in production.

-----Original Message-----
From: [[4]2]web400-bounces@xxxxxxxxxxxx [[3][5]mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Alan Seiden
Sent: Friday, 23 December 2011 12:00 p.m.
To: [[6]4]web400@xxxxxxxxxxxx
Subject: [WEB400] mod_ext_filter module for Apache?

Anyone know if the IBM i implementation of Apache HTTP Server includes the
module "mod_ext_filter" (or equivalent) ? It's sometimes hard to find
Apache modules because they have different names on IBM i.

[1][5][7]http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html

The mod_ext_filter module allows admins to define an external output
filter for HTTP content. We already have a DEFLATE filter that compresses
output, but mod_ext_filter would allow custom filters (any external
program) to be defined using the SetOutputFilter and ExtFilterDefine
directives. For example, I could tell Apache to post-process any web
server output through a PHP or Perl script, or Tidy to clean up the HTML,
etc.

Thanks!

Alan
--
Alan Seiden, PHP for IBM i Consultant and Developer
Zend Certified Engineer for Zend Framework
Strategic Business Systems, Inc.
phone: 201-327-8746 x144
[2][6][8]http://www.alanseiden.com | [[[9]7]3]alan@xxxxxxxxxxxxxx



References

Visible links
1. [8][10]http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
2. [9][11]http://www.alanseiden.com/
3. [10][12]mailto:alan@xxxxxxxxxxxxxx
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: [[13]11]WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: [12][14]http://lists.midrange.com/mailman/listinfo/web400
or email: [[15]13]WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at [14][16]http://archive.midrange.com/web400.


#####################################################################################

This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient.
Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda.
If you need assistance, please contact Veda on either :- Australia 1300-762-207 or New Zealand +64 9 367 6200
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: [[17]15]WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: [16][18]http://lists.midrange.com/mailman/listinfo/web400
or email: [[19]17]WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at [18][20]http://archive.midrange.com/web400.

References

Visible links
1. [21]mailto:Peter.Connell@xxxxxxxxxx
2. [22]mailto:web400-bounces@xxxxxxxxxxxx
3. [23]mailto:web400-bounces@xxxxxxxxxxxx
4. [24]mailto:web400@xxxxxxxxxxxx
5. [25]http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
6. [26]http://www.alanseiden.com/
7. [27]mail[28]mailto:3]alan@xxxxxxxxxxxxxx
8. [29]http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
9. [30]http://www.alanseiden.com/
10. [31]mailto:alan@xxxxxxxxxxxxxx
11. [32]mailto:WEB400@xxxxxxxxxxxx
12. [33]http://lists.midrange.com/mailman/listinfo/web400
13. [34]mailto:WEB400-request@xxxxxxxxxxxx
14. [35]http://archive.midrange.com/web400
15. [36]mailto:WEB400@xxxxxxxxxxxx
16. [37]http://lists.midrange.com/mailman/listinfo/web400
17. [38]mailto:WEB400-request@xxxxxxxxxxxx
18. [39]http://archive.midrange.com/web400
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: [40]WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: [41]http://lists.midrange.com/mailman/listinfo/web400
or email: [42]WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at [43]http://archive.midrange.com/web400.

#####################################################################################

This correspondence is for the named person's use only. It may contain confidential
or legally privileged information, or both. No confidentiality or privilege is waived
or lost by any mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You must not disclose,
copy or rely on any part of this correspondence if you are not the intended recipient.
Any views expressed in this message are those of the individual sender, except where
the sender expressly, and with authority, states them to be the views of Veda.
If you need assistance, please contact Veda on either :-
Australia 1300-762-207 or New Zealand +64 9 367 6200

References

Visible links
1. mailto:web400-bounces@xxxxxxxxxxxx
2. mailto:web400-bounces@xxxxxxxxxxxx
3. mailto:Peter.Connell@xxxxxxxxxx
4. mailto:2]web400-bounces@xxxxxxxxxxxx
5. mailto:web400-bounces@xxxxxxxxxxxx
6. mailto:4]web400@xxxxxxxxxxxx
7. http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
8. http://www.alanseiden.com/
9. mailto:7]3]alan@xxxxxxxxxxxxxx
10. http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
11. http://www.alanseiden.com/
12. mailto:alan@xxxxxxxxxxxxxx
13. mailto:11]WEB400@xxxxxxxxxxxx
14. http://lists.midrange.com/mailman/listinfo/web400
15. mailto:13]WEB400-request@xxxxxxxxxxxx
16. http://archive.midrange.com/web400
17. mailto:15]WEB400@xxxxxxxxxxxx
18. http://lists.midrange.com/mailman/listinfo/web400
19. mailto:17]WEB400-request@xxxxxxxxxxxx
20. http://archive.midrange.com/web400
21. mailto:Peter.Connell@xxxxxxxxxx
22. mailto:web400-bounces@xxxxxxxxxxxx
23. mailto:web400-bounces@xxxxxxxxxxxx
24. mailto:web400@xxxxxxxxxxxx
25. http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
26. http://www.alanseiden.com/
27. mailto:3
28. mailto:mailto:3]alan@xxxxxxxxxxxxxx
29. http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
30. http://www.alanseiden.com/
31. mailto:alan@xxxxxxxxxxxxxx
32. mailto:WEB400@xxxxxxxxxxxx
33. http://lists.midrange.com/mailman/listinfo/web400
34. mailto:WEB400-request@xxxxxxxxxxxx
35. http://archive.midrange.com/web400
36. mailto:WEB400@xxxxxxxxxxxx
37. http://lists.midrange.com/mailman/listinfo/web400
38. mailto:WEB400-request@xxxxxxxxxxxx
39. http://archive.midrange.com/web400
40. mailto:WEB400@xxxxxxxxxxxx
41. http://lists.midrange.com/mailman/listinfo/web400
42. mailto:WEB400-request@xxxxxxxxxxxx
43. http://archive.midrange.com/web400

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.