DAV API access, extending DAV with mod_perl (apache plugin)

2009-02-12 Thread Torsten Krah
Hi, i've looked into cpan and found a very old Apache::DAV Plugin. I wonder if mod_perl (2.x) does include access to the DAV Api already or does not provide anything? I am looking into a way using DAV with a customized mod_perl module, to extend the DAV implementation with quota a quota check.

mod_perl - Const import different under unix/win32 with perl/active perl

2007-10-12 Thread Torsten Krah
Hi. I did write a mod_perl module with the following statement: use Apache2::Const -compile => qw(:log :http :config :cmd_how :override); Under linux with perl 5.8.x i can use return Apache2::Const::OK; without any errors - mod_perl does not complain about it. If i got the same under windows

Re: [win32] mod_perl-2.0.3 + apache 2.2.4-openssl + ActivePerl 5.8.8b820 -> module not found

2007-10-11 Thread Torsten Krah
Never mind - i've should have read more carefully - i've taken the one for 2.0 instead 2.2, works flawless now. Torsten Torsten Krah schrieb: Hi. I've read the list + install instructions and did install: apache 2.2.4 from http://httpd.apache.org/. mod_perl-2.0.3 like descri

[win32] mod_perl-2.0.3 + apache 2.2.4-openssl + ActivePerl 5.8.8b820 -> module not found

2007-10-11 Thread Torsten Krah
Hi. I've read the list + install instructions and did install: apache 2.2.4 from http://httpd.apache.org/. mod_perl-2.0.3 like described here: http://perl.apache.org/docs/2.0/os/win32/install.html - the one for apache 2.2. ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl-2.0.ppd Activ

Re: Add a new RewriteCond Variable with mod_perl in an OutputFiler - possible?

2007-10-01 Thread Torsten Krah
Am Montag, 1. Oktober 2007 schrieben Sie: > You can pass this king of data to mod_rewrite with > $r->subprocess_env('name' => 'value') on the mod_perl side and RewriteCond > %{ENV:name} on the mod_rewrite side. > > See > http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_en >v

Re: Apache2::Log - logging to error_log instead of stdout

2007-09-30 Thread Torsten Krah
Am Sonntag, 30. September 2007 schrieb Philippe M. Chiasson: > Why not just report the module is available at startup, and report > it's being used at run time from within an actual handler, not > configuration hooks. Good idea. The second a got a idea how to "do", but the first - thats what i wan

Re: OutputFilter - using error documents handler to provide error message rather than doing it myself?

2007-09-28 Thread Torsten Krah
Am Freitag, 28. September 2007 schrieb Torsten Krah: > Hi. > > I've written an output filter which works fine so far. > However, in failure case, i am iterating through the buckets like its done > in POST200 module and insert a new message like its done there. > > How

Apache2::Log - logging to error_log instead of stdout

2007-09-28 Thread Torsten Krah
When my filter is installed, i want to log some message to the server Log, like: [Fri Sep 28 15:23:27 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) I thought i can use this: sub DIR_CREATE { my $s = Apache2::ServerUtil->server; $s->log_serror( Apache2::Log::LOG

OutputFilter - using error documents handler to provide error message rather than doing it myself?

2007-09-28 Thread Torsten Krah
Hi. I've written an output filter which works fine so far. However, in failure case, i am iterating through the buckets like its done in POST200 module and insert a new message like its done there. However, i am wonder if it is possible to tell the filter in an error case, that it should "break

Add a new RewriteCond Variable with mod_perl in an OutputFiler - possible?

2007-09-27 Thread Torsten Krah
Hi. I've read around the docs but i dont know if its possible or not. Can an perl output filter add a new variable to the current process which can be analyzed by mod_rewrite? Background: My filter does some internal redirects. I want to set a Condition named "ORIGINAL_REQ" to the url of the fi

Re: mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Torsten Krah
Am Dienstag, 25. September 2007 schrieb Torsten Krah: > Am Dienstag, 25. September 2007 schrieben Sie: > > On 9/25/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > > > mod_jk registers the same way for Locations like mod_perl does. > > > Can i register "2&quo

Re: mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Torsten Krah
Am Dienstag, 25. September 2007 schrieben Sie: > On 9/25/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > > mod_jk registers the same way for Locations like mod_perl does. > > Can i register "2" handlers or how can i solve this problem? > > > > I want t

mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Torsten Krah
Hi. I am using mod_perl to register an output request filter for certain locations. I've tested all with mod_proxy_ajp and it works like expected. Now i have to connect apache <-> tomcat with mod_jk - but thats not that easy as i thought. mod_jk registers the same way for Locations like mod_per

Re: mod_perl - Intercepting an external Redirect

2007-09-21 Thread Torsten Krah
Am Donnerstag, 20. September 2007 schrieben Sie: > On 9/19/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > > Now i configured the "otherhost" to do a permanent redirect when > > /time/blog is requested. > > If i request this uri, the redirect is done like conf

Re: mod_perl - Intercepting an external Redirect

2007-09-20 Thread Torsten Krah
Perrin Harkins schrieb: On 9/19/07, Torsten Krah <[EMAIL PROTECTED]> wrote: Now i configured the "otherhost" to do a permanent redirect when /time/blog is requested. If i request this uri, the redirect is done like configured there - my filter does not get called. It

Re: mod_perl - Intercepting an external Redirect

2007-09-19 Thread Torsten Krah
Am Mittwoch, 19. September 2007 schrieb Perrin Harkins: > On 9/19/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > > So in short, i need to analyze the response of mod_proxy and if it > > matches some criteria, i want to do a internal redirect and serve some > > cont

mod_perl - Intercepting an external Redirect

2007-09-19 Thread Torsten Krah
Hi. I am new to mod_perl apache2 api and hope you can help me a little bit. I've got following scenario: A incoming request A is rewritten by apaches rewrite modul to be served by mod_proxy_ajp - which is connected to a tomcat. The servlet there produce the response and this one will passed bac