Newbie question about mod_perl capabilities

2003-07-07 Thread Walter H. van Holst
Hi,

 I am new to mod_perl and am trying to figure out whether it suits my
needs or not. Can I use it to intercept any http CONNECT requests Apache
receives and answer those?

Regards,

 Walter
-- 
Like almost everyone, I receive a lot of spam every day, much of it
offering to help me get out of debt or get rich quick. It's ridiculous.
(Bill Gates)



Re: Newbie question about mod_perl capabilities

2003-07-08 Thread Walter H. van Holst
On Tue, 2003-07-08 at 10:14, Matt Sergeant wrote:

> Sorry Ged, Walter is talking about CONNECT which is a proxy request. It 
> goes in place of GET or POST in the request line:
> 
> CONNECT mail.openrelay.com:25 HTTP/1.1
> 
> I *think* mod_perl will be able to intercept this, but I've never tried 
> it. You might need to do it very early on in the request, and make sure 
> it gets passed through to mod_proxy later on or things just won't work.

Well, thanks to a someone on IRC I have found a code snippet that might
do exactly that. So it appears that mod_perl can do this. And yes, it is
intended for exactly the kind of CONNECT requests you describe.

Regards,

 Walter
-- 
Like almost everyone, I receive a lot of spam every day, much of it
offering to help me get out of debt or get rich quick. It's ridiculous.
(Bill Gates)



Another newbie question: SetPerlVar

2003-07-17 Thread Walter H. van Holst
Hello,
 
 If I use SetPerlVar in my apache-perl httpd.conf by just plainly
stating.

SetPerlVar Foo Bar

Apache-perl won't start:

Syntax error on line xxx of /etc/apache-perl/httpd.conf:
Invalid command 'SetPerlVar', perhaps mis-spelled or defined by a module
not included in the server configuration
/usr/sbin/apache-perl-ctl start: httpd could not be started

What is the obvious thing I am overlooking?

Regards,

 Walter
-- 
Like almost everyone, I receive a lot of spam every day, much of it
offering to help me get out of debt or get rich quick. It's ridiculous.
(Bill Gates)



Re: Another newbie question: SetPerlVar

2003-07-17 Thread Walter H. van Holst
On Thu, 2003-07-17 at 18:56, Frank Wiles wrote:

> > What is the obvious thing I am overlooking?
> 
>   It's PerlSetVar not SetPerlVar. 

* Blush *

Thanks.

Regards,

 Walter
-- 
All things that are, are with more spirit chased than enjoyed.
 -- Shakespeare, "Merchant of Venice"