Re: ANNOUNCE: Apache::OpenIndex
At 03:18 PM 9/8/2001 +0800, you wrote: Apache::AutoIndex was never released to CPAN. Hehe, funny, it sure look like it's still there ;-) I'm sorry. Of course what I meant to say was: Apache::FileMan was never released to CPAN. Also, for any of you trying to login to the demo late yesterday at: http://www.xorgate.com/Apache/OpenIndex/demo I made a password capital letter typo in the README file (at about the same time I made the above typo) , which by the way, made all the difference in the world when trying to login. It was bad for only about an hour. +==+ | George Sanderson [EMAIL PROTECTED] | http://www.xorgate.com +==+
How do I close a persistent connection?
Hi. We are experiencing infrequent troubles (page could not be displayed) with IE 5 and redirects under SSL. As a workaround (hopefully) I want to close the persistent HTTP/1.1 connection if such a redirect occurs. How do I do this. Sending a Connection:close header will tell the client that I will close the connection, but how do I actually do this? Thanx, Joachim
Re: How do I close a persistent connection?
On 8 Sep 2001, J. Zobel wrote: Hi. We are experiencing infrequent troubles (page could not be displayed) with IE 5 and redirects under SSL. As a workaround (hopefully) I want to close the persistent HTTP/1.1 connection if such a redirect occurs. How do I do this. Sending a Connection:close header will tell the client that I will close the connection, but how do I actually do this? Don't use KeepAlive with mod_perl in first place if you are talking about mod_perl. http://perl.apache.org/guide/performance.html#KeepAlive _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: embperl
Another advantage of Perl is that you can use this language in other situations as well. Unlike PHP, or ColdFusion or other languages who need something to tow them...you know like an RV without a head, Perl has actaully an engine and gearbox as well. On Fri, 7 Sep 2001, Diego V wrote: Hi there, Just wanted to ask to any embperl user, is there any real advantage about using embperl instead of PHP ? Thank you Diego Ventrice _ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp -- - Medi Montaseri [EMAIL PROTECTED] Unix Distributed Systems EngineerHTTP://www.CyberShell.com CyberShell Engineering -
Re: [PATCH] $r-print won't print reference to PVIV or PVMG
Turns out PVNV is a possibility as well (generally if the scalar is a zero-length string). Here's an updated patch. -- Stephen Clouse [EMAIL PROTECTED] Senior Programmer, IQ Coordinator Project Lead The IQ Group, Inc. http://www.theiqgroup.com/ diff -ur mod_perl-1.26.orig/src/modules/perl/Apache.xs mod_perl-1.26/src/modules/perl/Apache.xs --- mod_perl-1.26.orig/src/modules/perl/Apache.xs Fri Jul 6 15:15:04 2001 +++ mod_perl-1.26/src/modules/perl/Apache.xsSat Sep 8 18:08:47 2001 @@ -1171,7 +1171,8 @@ for(i = 1; i = items - 1; i++) { int sent = 0; -SV *sv = SvROK(ST(i)) (SvTYPE(SvRV(ST(i))) == SVt_PV) ? +SV *sv = SvROK(ST(i)) (SvTYPE(SvRV(ST(i))) == SVt_PV || +SvTYPE(SvRV(ST(i))) == SVt_PVIV + || SvTYPE(SvRV(ST(i))) == SVt_PVNV || +SvTYPE(SvRV(ST(i))) == SVt_PVMG) ? (SV*)SvRV(ST(i)) : ST(i); buffer = SvPV(sv, len); #ifdef APACHE_SSL PGP signature
Re: embperl
* Medi Montaseri ([EMAIL PROTECTED]) [08 Sep 2001 22:58]: Another advantage of Perl is that you can use this language in other situations as well. Unlike PHP, or ColdFusion or other languages who need something to tow them. [...] Much as I hate to give PHP a pro rather than a con, I must point out that PHP can be used independently from a web service. It can be happily used as a general purpose scripting language. Of course, you don't get CPAN... cheers, -- iain. http://eh.org/~koschei/ PGP signature
Cloning the request object
Hi there, Those anybody know if is possible to clone the apache request object?. I'm trying to write a Apache module that do some basic validation against the request parameters. But as soon as a touching the request is gone. any other posibilities? thank's alin
Getting to the $ENV{HTTP_HOST} variable
Hi all. I am relatively new to mod perl. I have a script that works using the following: my $dm = $s-server_hostname; But in my normal perl scripts I am now using the HTTP_HOST value.. I tried this: my $env = $r-subprocess_env; %ENV = %$env; my $dm = $ENV{'HTTP_HOST'}; without any luck. Is it possible to get to the HTTP_HOST value in mod_perl? If I need to send my complete code just e-mail me and let me know.. Thanks! Justin == Justin C. Rains, President WSI.com Consulting _ Get your own FREE branded portal! Visit www.wsicnslt.com to learn more
Re: segfault
Thanks for your suggestion. I followed the doc at the link you specified and got it working. Bob Stas Bekman wrote: On Fri, 7 Sep 2001, Bob Mroczka wrote: I just compiled and installed Apache 1.3.20 with mod_perl 1.26 and mod_ssl-2.8.4. Apache segfaults almost immediately on all requests. For kicks I compiled Apache without mod_ssl and the segfaults disappear. Also interesting is the fact that when I compile without mod_ssl make test completes successfully but when I include mod_ssl the make test fails to start a httpd process due to a syntax error: letting apache warm up...\c Syntax error on line 3 of /usr/src/mod_perl-1.26/t/conf/httpd.conf: Invalid command '=pod', perhaps mis-spelled or defined by a module not included in the server configuration done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok you have used PREP_HTTPD, of course make test won't work. You want to follow this scenario while installing mod_ssl+mod_perl http://perl.apache.org/guide/install.html#mod_perl_and_mod_ssl_openssl_ and you will be all set. When I run apache under -X and strace here is what happens when the request comes in: 26480 read(5, GET / HTTP/1.0\r\nConnection: Keep..., 4096) = 277 26480 rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0 26480 time(NULL)= 17985 26480 alarm(300)= 300 26480 alarm(0) = 300 26480 stat64(0x8170710, 0xb17c) = 0 26480 --- SIGSEGV (Segmentation fault) --- 26480 +++ killed by SIGSEGV +++ Does anyone have any suggestions? You have kindly provided everything but the core trace. See the SUPPORT file to learn how to do that, but first try to build using the details from above. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: Cloning the request object
-- Alin Simionoiu [EMAIL PROTECTED] Hi there, Those anybody know if is possible to clone the apache request object?. I'm trying to write a Apache module that do some basic validation against the request parameters. But as soon as a touching the request is gone. any other posibilities? I've never had problems with: sub handler { my $request = shift; foo $request or croak foo doesn't like you!; ... } sub foo { my $request = shift; ... } -- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 800 762 1582
cvs commit: modperl-2.0/lib/ModPerl BuildOptions.pm
dougm 01/09/08 11:00:49 Modified:lib/ModPerl BuildOptions.pm Log: make sure path to APXS is absolute Submitted by: Philippe M . Chiasson [EMAIL PROTECTED] Reviewed by: dougm Revision ChangesPath 1.9 +7 -0 modperl-2.0/lib/ModPerl/BuildOptions.pm Index: BuildOptions.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/BuildOptions.pm,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- BuildOptions.pm 2001/04/27 21:07:53 1.8 +++ BuildOptions.pm 2001/09/08 18:00:49 1.9 @@ -8,6 +8,8 @@ use constant VERBOSE = 1; use constant UNKNOWN_FATAL = 2; +use File::Spec; + sub init { my($self, $build) = @_; @@ -54,6 +56,11 @@ my $usage = usage(); die Unknown Option: $key\nUsage:\n$usage; } + +if($key eq 'MP_APXS') { +$val = File::Spec-canonpath(File::Spec-rel2abs($val)); +} + if ($self-{$key}) { $self-{$key} .= ' '; }