Proxied mod_perl server problem

2002-05-13 Thread Ian Macdonald
Hi All. I'm setting up a new server and wish to run two Apache configurations, one vanilla and one mod_perl. I've configured pretty much according to Stas' excellent guide, using the rewrite module to push the perl requests to the second (ie mod_perl) server. Versions; HP-UX 10.20,

Re: Proxied mod_perl server problem

2002-05-13 Thread Igor Sysoev
On Mon, 13 May 2002, Ian Macdonald wrote: I'm setting up a new server and wish to run two Apache configurations, one vanilla and one mod_perl. I've configured pretty much according to Stas' excellent guide, using the rewrite module to push the perl requests to the second (ie mod_perl)

RE: mod_perl2: nmake test crashes apache

2002-05-13 Thread Alessandro Forghieri
Greetings Doug McEachern wrote: [...] avoiding use of PL_sv_no has cured all segfaults on win32. the fixes have been checked into cvs. there are still a few tests that fail, but none that trigger a segfault. With the latest nodperl CVS snapshot the tally of the tests is much improved.

open3 does not proper work in mod_perl context

2002-05-13 Thread Silvio Wanka
Hi, I will upgrade from Embedded Perl version 5.00502 for Apache/1.3.6 (Unix) mod_perl/1.19 to Embedded Perl version v5.6.1 for Apache/1.3.23 (Unix) mod_perl/1.26 But now all mod_perl scripts which uses IPC::Open3::open3() fails because STDIN of the new process is closed. I have done some

Re: [modperl2] Note on the win32 docs

2002-05-13 Thread Peter Rothermel
Excellent document. A slight enhancement request. Could you give some details on how to separate the modperl installation from the Perl installation? I believe the latest binary release has the mod_perl installed in a separate blib under the C:\Apache2 directory. thanks -pete

Re: [modperl2] Note on the win32 docs

2002-05-13 Thread Randy Kobes
On Mon, 13 May 2002, Peter Rothermel wrote: Excellent document. A slight enhancement request. Could you give some details on how to separate the modperl installation from the Perl installation? I believe the latest binary release has the mod_perl installed in a separate blib under the

Re: [modperl2] Note on the win32 docs

2002-05-13 Thread Peter Rothermel
Randy Kobes wrote: On Mon, 13 May 2002, Peter Rothermel wrote: The blib/ directory under C:/Apache2 doesn't actually have to be moved anywhere - one includes it with the directive PerlSwitches -Mblib=C:\Apache2 specified in the supplied httpd.conf So, for this

Re: [modperl2] Note on the win32 docs

2002-05-13 Thread Randy Kobes
On Mon, 13 May 2002, Peter Rothermel wrote: When you built the mod_perl distribution did you use perl Makefile.PL MP_AP_PREFIX=C\Apache2 MP_INST_APACHE2=1 LIB=C:\Apache2\blib\lib Ah ... I just used perl Makefile.PL MP_AP_PREFIX=C:\Apache2 MP_INST_APACHE2=1 and then copied the blib/

RE: mod_perl2: nmake test crashes apache

2002-05-13 Thread Doug MacEachern
On Mon, 13 May 2002, Alessandro Forghieri wrote: There is a residual crash at dir_config.t (WinNT SP6 - MS Visual Studio 6 SP3). all tests pass for me with both 5.6.1 and bleedperl, httpd-2.0 from cvs on xp with msdev 6.0. i also tried 5.6.1 with no debug symbols, still all pass. would

automatic redirect to https

2002-05-13 Thread Aaron J Mackey
Can anyone see something wrong with this, or suggest a better mechanism: unless ( $ENV{HTTPS} ) { # bounce request to secure port my $uri = $r-parsed_uri(); $uri-scheme('https'); $r-header_out(Location = $uri-unparse()); return REDIRECT; } This

Re: automatic redirect to https

2002-05-13 Thread Geoffrey Young
Aaron J Mackey wrote: Can anyone see something wrong with this, or suggest a better mechanism: unless ( $ENV{HTTPS} ) { # bounce request to secure port my $uri = $r-parsed_uri(); $uri-scheme('https'); $r-header_out(Location = $uri-unparse());

Re: automatic redirect to https

2002-05-13 Thread Aaron J Mackey
On Mon, 13 May 2002, Geoffrey Young wrote: my $uri = Apache::URI-parse($r); Well, now $uri-unparse yields this: null: https://_default_/mydirectory; Which of course doesn't work in the Location field of the redirect. I can munge this as I need, but I was hoping for something cleaner.

Re: cannot build mod_perl-1.99_01 with httpd-2.0.36

2002-05-13 Thread Doug MacEachern
On Sat, 11 May 2002, Tom Kralidis wrote: % perl Makefile.PL MP_AP_PREFIX=/usr/local/src/apache/httpd-2.0.36 MP_AP_PREFIX needs to be a directory where apache is installed, not the source tree. when apache is installed it puts all headers into the installed include/ directory.

mod_perl2: nmake test crashes apache

2002-05-13 Thread Alessandro Forghieri
Greetings. Well now... There is a residual crash at dir_config.t (WinNT SP6 - MS Visual Studio 6 SP3). all tests pass for me with both 5.6.1 and bleedperl, httpd-2.0 from cvs on xp with msdev 6.0. i also tried 5.6.1 with no debug symbols, still all pass. would help to know which

Re: automatic redirect to https

2002-05-13 Thread Geoffrey Young
Aaron J Mackey wrote: On Mon, 13 May 2002, Geoffrey Young wrote: my $uri = Apache::URI-parse($r); Well, now $uri-unparse yields this: null: https://_default_/mydirectory; Which of course doesn't work in the Location field of the redirect. I can munge this as I need, but I was

Re: automatic redirect to https

2002-05-13 Thread Aaron J Mackey
On Mon, 13 May 2002, Geoffrey Young wrote: hmm, that's interesting - I guess you're catching a VirtualHost _default_ setting? If so, there's probably not much you can do about it save something like my $uri = Apache:URI-parse($r); $uri-hostname($r-headers_in-get('Host')); That did the

Re: mod_perl2: nmake test crashes apache

2002-05-13 Thread Doug MacEachern
On Mon, 13 May 2002, Alessandro Forghieri wrote: I think apache may be (sometimes?) picking up whatever mod_perl.so is under SERVER_ROOT/modules during the test run. this is fixed in cvs now. So, disregard my previous message, my failed line is now: as is this.

MLDBM Tie Errors

2002-05-13 Thread Mike Martinet
Greetings, With this setup: Linux kernel 2.4.7-10 Apache 1.3.24 mod_perl-1.26 Apache::ASP 2.33 MLDBM 0.25 I keep getting the following errors: First this - [Mon May 13 08:57:26 2002] [notice] Apache/1.3.24 (Unix) mod_perl/1.26 mod_ssl/2.8.8 OpenSSL/0.9.6b configured -- resuming normal

RE: automatic redirect to https

2002-05-13 Thread Christian Gilmore
Is there a reason you don't just use a Redirect? VirtualHost __default__:80 Redirect / https://secure.server.com/ /VirtualHost Regards, Christian - Christian Gilmore Technology Leader GeT WW Global Applications Development IBM Software Group

Getting the output-filehandle

2002-05-13 Thread Nico Erfurth
Hi, I'm wondering if it's possible to retrieve some kind of FH from the Request-object, because i want to pass the output-filehandle to HTML::Template, so it can write while it parses a template. STDOUT doesn't work (would be too easy ;)) I thought about creating my own FH, tied to a simple

Re: cannot build mod_perl-1.99_01 with httpd-2.0.36

2002-05-13 Thread Tom Kralidis
% perl Makefile.PL MP_AP_PREFIX=/usr/local/src/apache/httpd-2.0.36 MP_AP_PREFIX needs to be a directory where apache is installed, not the source tree. when apache is installed it puts all headers into the installed include/ directory. Thanks for the info. That didn't seem to work either

Re: cannot build mod_perl-1.99_01 with httpd-2.0.36

2002-05-13 Thread Peter Rothermel
I'm getting the same error on Win32 builds. I just assumed that mod_perl-1.99_01 and httpd-2.0.36 were not compatible. I've been compiling with httpd-2.0.35 and to avoid the error. The file apr_lock.h is missing in the httpd-2.0.36 include directory but present in the httpd-2.0.35 source

[JOB] Mod_Perl/Sys Admin/HTML Tech Support - Los Angeles, CA

2002-05-13 Thread Frank Scannello
The Partner Technical Team Support Engineer is dedicated to helping Partners maintain and administrate the Citysearch software. Because Partner needs, technologies, business requirements and languages vary widely, the candidate must be able to communicate effectively. Location: must be able to

Re: cannot build mod_perl-1.99_01 with httpd-2.0.36

2002-05-13 Thread Doug MacEachern
On Mon, 13 May 2002, Tom Kralidis wrote: modperl_apache_includes.h:46:22: apr_lock.h: No such file or directory oh right, 1.99_01 will not compile with 2.0.36, since apr_lock.h has been removed from apache. you can use modperl from cvs or wait for 1.99_02, which should be released soon-ish.

$r-args vs $r-content

2002-05-13 Thread Mike Melillo
Hi, I'm having issues processing user input via POST requests. I have a simple form page, that when you click submit I just want to redisplay the page but with the values filled in. If I do a GET request and do %params = $r-args; It works, but if I use the method in the eagle book for POST

Re: $r-args vs $r-content

2002-05-13 Thread Todd Finney
At 10:29 PM 5/13/02, Mike Melillo wrote: It works, but if I use the method in the eagle book for POST requests %params = $r-content; then nothing gets returned. I've even printed %params to the apache errlog with DataDumper, and its empty. One of the fields is an image file that will be

RE: $r-args vs $r-content

2002-05-13 Thread Mike Melillo
No, It specifies multipart/form-data because page 131 of the eagle says its used for file uploads. Mike -Original Message- From: Todd Finney [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 11:16 PM To: [EMAIL PROTECTED] Subject: Re: $r-args vs $r-content At 10:29 PM 5/13/02,

HTTP version conflict with proxy setup.

2002-05-13 Thread Ian Macdonald
Hi, More info on my problem with my proxied (via Rewrite rules) mod_perl apache giving responses that were a) topped tailed with message size and 0 respectively, and b) delayed for about 15 seconds; thanks to Igor S. for tipping me off that this was chunking and therefore it was a HTTP

RE: $r-args vs $r-content

2002-05-13 Thread Todd Finney
Yup, slight memory error when responding, sorry :) $r-content is going to be empty if you're not using the application/x-www-form-urlencoded, perldoc Apache. Page 131 of the Eagle book also says If the browser uses the newer multiport/form-data encoding (which is used for file uploads,

Re: MLDBM Tie Errors

2002-05-13 Thread Joshua Chamas
Mike Martinet wrote: Greetings, With this setup: Linux kernel 2.4.7-10 Apache 1.3.24 mod_perl-1.26 Apache::ASP 2.33 MLDBM 0.25 Please submit a trace of the error_log for the request, with PerlSetVar Debug -1 set, and a description of the problem as well as what file

[JOB SEEK] Toronto - Re: [JOB] Mod_Perl/Sys Admin/HTML Tech Support - Los Angeles, CA

2002-05-13 Thread Peter Bi
Hi, I shall fit 99% to Frank's job :-), but I have to move to Toronto soon. Looking for a mod_Perl or Perl related job in GTA (Toronto and Southern Ontario, Canada). Off-site contractor job is okay too. ASAP. Please check my resume at http://modperl.home.att.net . Thanks. Peter Bi p.s. I