When apache mod_proxy pass the client's request to an original server, I want it
always duplicate the request to another webserver.
For example, the request is following: client - mod_proxy - original-server
What I want is:
client - proxy - original-server
|- another
use the same packages as Debian? On Debian I do:
apt-get install apache2 libapache2-mod-perl2 libapache2-request-perl
libapache2-mod-apreq2
Hope this helps!
Marilyn
On Wed, Dec 1, 2010 at 2:07 AM, Dave Hodgkinson daveh...@gmail.com wrote:
On 1 Dec 2010, at 02:51, Jeff Pang wrote:
Hello
Hello,
Does modperl and Apache2::Request have a port for Ubuntu and which will be
installed by apt-get?
Ubuntu's development environment is so worse, has been losing so many
libraries, compiling modperl under which is hard.
Thanks.
Jeff Pang
http
unsubscribe from the list, send an empty message to:
modperl-unsubscr...@perl.apache.org
Jeff Pang
http://blog.sina.com.cn/pajeu
- Original Message -
From: biao zhou biaoz...@hotmail.com
To: modperl@perl.apache.org
Subject: unsubscribe
于 2010-10-29 20:28, Fayland Lam 写道:
try a framework. that's much more popular. :)
I wrote a small application with few scripts.
A framework like catalyst is too large to use for me.
Thanks.
Jeff.
于 2010-10-29 20:20, Perrin Harkins 写道:
Both work. CGI::Session was better maintained for a while but it
looks like Apache::Session has been updated recently. Pick the one
that you find easiest to understand from the documentation.
I know CGI::Session well.
But have been thinking does
于 2010-10-29 20:42, Fayland Lam 写道:
try Dancer. which is very suitable for small application. just one file.
Ok I will check out it.
I first time knew Dancer from ruby 2 years ago.
Never know that there is a perl execution of that.
is Apache::Session or CGI::Session better for mod_perl?
Thanks.
2009/9/24 Robertson, Gordon H CIV DISA GES-E gordon.robert...@disa.mil:
Hi,
Please take me out of mailing list
please send an empty mail to modperl-unsubscr...@perl.apache.org, thanks.
On Tue, 30 Nov 2004 22:38:11 +
modperl[at]att.net wrote:
3) capacity/scalable
mod_perl is very scalable --- I mean, one can properly
config a single server to handle dynamic content for
200K daily unique IPs. PHP may end up with just 100K
and servlet ends up at around 50K.
I'm just
Hello,
Google has introduced its music searching here (music.google.cn), with an
online web music player.
what I'm surprised with is, even I deleted all the browser's cookies and
buffers (I use firefox), after re-open that web music player, the list of songs
is still there (I also tried
Message du 27/03/09 07:09
De : Phil Van
A : modperl@perl.apache.org
Copie à :
Objet : modperl or php? Re: decline and fall of modperl?
daily traffic: 100,000 - 500,000 unique sessions (medium to medium-large
sites)
= modperl in a cluster environment
me again: modperl as well as
, Jeff Pang wrote:
Hello,
I have a modperl application on a host which is running with heavy load.
I have the plan to put a reverse proxy before it.
There are two well known reverse proxy software, one is Squid, another is
nginx.
Which one is better for modperl application
), not a
proxy server.
One of our applications, have two LVS before 200+ Squid boxes, the backend are
hundreds of fastcgi servers. LVS and Squid run with DR mode, could reach to
10G+ traffic.
--
Jeff Pang
http://home.arcor.de/pangj/
Créez votre adresse électronique prenom@laposte.net
1
Just ask out of being curious, are mod_perl and mod_python the same or similar
stuff?
Which is better (in performance or ease to use)? Thanks.
Jeff.
Créez votre adresse électronique prenom@laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
Hello,
I have a modperl application on a host which is running with heavy load.
I have the plan to put a reverse proxy before it.
There are two well known reverse proxy software, one is Squid, another is nginx.
Which one is better for modperl application? or is there any others which are
better
Message du 29/09/08 23:05
De : Perrin Harkins
A : Mark Stosberg
Copie à : modperl@perl.apache.org
Objet : Re: Any success with storing photos in a database?
On Mon, Sep 29, 2008 at 3:00 PM, Mark Stosberg wrote:
We have a large, busy, database application that relates to millions of
I have began a project, but meet some problems,:)
say there are three dirs:
|- cgi-bin
|- cgi-bin - lib
|- cgi-bin - template
I have a script in cgi-bin, which requires the template file from template dir.
This script also uses a library file (.pm) from lib dir.
Finally the library need to
These are the install documents for mp2:
http://perl.apache.org/docs/2.0/user/install/install.html#Dynamic_mod_perl
http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl
I just think both are fine.
For me I use dynamic install most time.
On Sat, Jul 19, 2008 at 5:42 AM,
On Thu, Apr 3, 2008 at 11:32 PM, Felipe de Jesús Molina Bravo
[EMAIL PROTECTED] wrote:
hi
I have installed static mp2 with apache 2.0.63 (forker). I am using perl
bind (Sleepycat::DBXML) from dbxml; then I create an object (reference to
Sleepycat::DBXML) in startup.pl because i want to
yup,thanks for the reminding.
I checked the doc, for mp1 it's $r-header_in(); for mp2 it's $r-headers_in().
-Original Message-
From: Foo JH [EMAIL PROTECTED]
Sent: Jan 21, 2008 3:52 PM
To: Jeff Pang [EMAIL PROTECTED]
Cc: modperl-list modperl@perl.apache.org
Subject: Re: get UserAgent
Hello,
what are the methods to get UserAgent setting in both mp1 and mp2?
I tried search,but got no results.
Thanks!
Regards,
Jeff Pang
Hello,
I met a strange requirement that, given Apache has two virtual hosts, vhA and
vhB, vhA's document root is: /path/a/; vhB's document root is: /path/b/.
vhA's programs are running under /path/a/cgi-bin, but actually, the programs of
vhA can access vhB's directory (ie,they can open and
-Original Message-
From: Roberto C. Sánchez [EMAIL PROTECTED]
I prefer to run multiple httpd processes on high numbered ports (one for
each site), then have the main httpd on port 80 do proxypass
proxypassrever and name-based vhosting. Then you can also customize
each httpd to only
2007/12/14, Malcolm [EMAIL PROTECTED]:
On Thursday 13 December 2007 10:00:30 am Jeff Pang wrote:
right now I got these exceptions in error_log:
[Thu Dec 13 21:53:49 2007] [notice] child pid 4660 exit signal
Segmentation fault (11)
Apache::Scoreboard is basically just a wrapper around
2007/12/13, Malcolm [EMAIL PROTECTED]:
Just to confirm, you do have a use Apache::Scoreboard in there somewhere?
surely I used it.
right now I got these exceptions in error_log:
[Thu Dec 13 21:53:49 2007] [notice] child pid 4660 exit signal
Segmentation fault (11)
[Thu Dec 13 21:53:49 2007]
I need Apache::Scoreboard for mp1, where to find it? please help.
Thank you all guys.
At first I used mod_limitipconn for limiting ip concurrent
connections. But I found it got conflict with my mp handler (the
PerlAccessHandler one).
So I checked its source (it came with a perl version), and found it's
easy to be integrated into my handler.And it used
When added these code in my handler:
my $r = shift;
# We decline to handle subrequests: otherwise, a few lines down we
# could get into an infinite loop.
return DECLINED unless $r-is_initial_req;
#
# for limit-ip-conn
#
my $ip_count = 0;
my $limit =
We have another project to get start with, some linux hosts to server
file downloading requests.
Apache is just used to server static large files, without any external
modules, except the modperl handler for access control, like ip and
processes limit.
We have run mp1 in large application, and run
On Nov 26, 2007 11:16 AM, Roberto C. Sánchez [EMAIL PROTECTED] wrote:
Umm, why would you want to do that? Why not just use a proper load
balancing solution?
because, when redirecting, apache doesn't know the exact location for
that redirection.
apache must do some querying to get the
hello,
we have some mp1 programs including both handlers and registry scripts,run
for long days.
since apache2 is better than apache1.3, we have made the choice to upgrade
the mp1 programs to mp2.
Is there any easy way or guide to do it? thank you.
National Bingo Night. Play along
- Original Message -
From: Jeff Armstrong [EMAIL PROTECTED]
Cc: modperl modperl@perl.apache.org
2. Pay up for VMWare Workstation.
With VMWare you can have virtual linux sessions running in Windows.
There's a free player and some free Linux virtual machines but if you
want to
2007/10/5, D. Hageman [EMAIL PROTECTED]:
The module will be preloaded just like your script, thus any speed up
experienced by your script will also be experienced by the module.
Hi,
If you don't preload it in startup.pl or with PerlModule directive in
httpd.conf,I don't think registry
Hello,
Does apache2.2+mp2 have much advantage than apache2.0+mp2?
2007/10/4, Foo JH [EMAIL PROTECTED]:
You may want to hold back on 2.2.6. Use either 2.2.4 from ASF or 2.2.5
from ApacheLounge.
Tracy E Schreiber wrote:
Hi,
I believe that mod_perl 2.0.3 is not compatible with Apache
2007/10/2, Tyler Bird [EMAIL PROTECTED]:
Hi List,
I know this is off topic, but does anyone know
if you restart the sendmail MTA daemon if all mail in the mail queues
will still
be delivered or any email will be lost as a result?
No.when you restart a sendmail,mail queues will neither be
2007/9/28, [EMAIL PROTECTED] [EMAIL PROTECTED]:
as i see there is no way to set request parameter in mod_perl2
You can rewrite an url using mp2's PerlTransHandler.
This is the sample code from book mp2 user's guide.
If the URI:
http://example.com/news/20021031/09/index.html
is now handled by:
Great story,thanks.
btw,is there any article about performance comparsion between modperl and php?
2007/9/26, Perrin Harkins [EMAIL PROTECTED]:
My Google alert sent this to me today:
http://whitepapers.zdnet.com/abstract.aspx?docid=257555
- Perrin
2007/9/17, André Warnier [EMAIL PROTECTED]:
If the above is not applicable, then you could use something like
location /xyz
PerlSetVar AllowedIps ip1 ip2 ip3
...
/location
and in your module do
sub handler {
my $r = shift; # the request object
my $AllowedIps =
2007/8/24, Perrin Harkins [EMAIL PROTECTED]:
On 8/21/07, Jeff Pang [EMAIL PROTECTED] wrote:
PerlHandler Package::Name
instead of:
PerlHandler Package::Name-handler
So on the first case,we need to write the handler as
sub handler { my $r = shift; ...}
because Apache may call
he error_log message:Can't call method "send_http_header" on an undefined value at /path/to/module/Name.pmThe handler method starts out with:
sub handler ($$) { my ($class, $r) = @_;
--
Jeff Pang - [EMAIL PROTECTED]
http://home.arcor.de/jeffpang/
always used the first config.
--
Jeff Pang - [EMAIL PROTECTED]
http://home.arcor.de/jeffpang/
hello,
When I installed Apache2::Request (without make test) and rut it I got
the errors:
[EMAIL PROTECTED] libapreq2-2.08]# perl -MApache2::Request -e ''
Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/APR/APR.so'
for module APR: libaprutil-0.so.0: cannot open shared
Jeff Pang 写道:
hello,
When I installed Apache2::Request (without make test) and rut it I got
the errors:
Sorry,forgot the info for my system.
[EMAIL PROTECTED] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant)
[EMAIL PROTECTED] ~]# uname -r
2.6.9-5.EL
[EMAIL
Jonathan Vanasco 写道:
On Jun 13, 2007, at 5:44 AM, Jeff Pang wrote:
When I installed Apache2::Request (without make test) and rut it I got
the errors:
at the risk of stating the obvious...
what happens why you run make test ?
It said I was making test with root identify,but Apache would
Hello,
When compiling modperl (I used mp2),what's the correct I/O buffer for
it?The server has 1G ethernet interface,would server for something like
flv/wma content.The default buffer is 8K,I think I could increase this
value for better performance.
Thanks!
Foo JH 写道:
You'd see that Apache2::Request exposes more stuff, which you can
(lazily) use. Unless you are looking for some backward compatibility to
tradditional CGI programming, why not embrace the entire modperl library?
I second it.Using Apache2::Request is not harder than CGI,but much
There's no issue with the way perl runs on linux -- the issue is the
support the distros have for it. If you're running linux, you're
building mod_perl from source. Otherwise, ModPerl on linux is just a
shame. The distros are just not supporting it.
Got it,thanks.
It's not the problem
-Original Message-
From: Nils Kaiser [EMAIL PROTECTED]
After investigating, we decided to go for a mod_perl / berkeleydb
solution. The berkeleydb caches the data for each user agent, so the
webservice will be only queried once. Coding is not a problem as we have
one perl developer
It's slower than BerkeleyDB and Cache::FastMmap.
I've used both (DB_File and memcached),but I found memcached was faster than
DB_File since memcached used memory as the cache device but DB_File used local
filesystem.Am I not right?:)
--
mailto: [EMAIL PROTECTED]
i think the mod_perl support on the 'enterprise linux' platforms are
pretty bad -- they're often way out of date. public distros, like
ubuntu, are usually up-to date.
freebsd support is the best, much thanks to philip porting to
freebsd within minutes of the source code release (btw,
We also do everything (not source code, which is in ISO-8859-1, only content)
in UTF-8 where I work, and we support many different languages.
Jeff,how did you do it by using utf-8 for everything?can you give a rough
description?Thanks.
--
mailto: [EMAIL PROTECTED]
I am trying to install the Devel::Size perl module in Unix.I have
installed it but when I try to include it in my program using use lib
'/pathname'
I get the error as follows:-
Can't locate Devel/Size.pm in @INC (@INC contains:
Sounds like you installed the module uncorrectly.
Please see:
I couldn't find anything online. It would be nice to have an
official policy, usage -- i know that there's been a ton of logo
issues with other groups. A popular approach seems to be having an
official project/release logo, and then another official 'powered by'
or 'derivative of'
childs and
keep it open all the time like Apache::DBI?
--
Jeff Pang
EMAIL: pangjatearthlink.net AIM: jeffpang
I mean anything relative to the performance.is the begin block called
everytime orjust the first time and is it safe to define a function in
a file and call it with this method rather than a package ,
The begin blocks are only run at compile time, so won't affect the
performance of future
Sorry, one other thing I didn't mention from the start is that the errors are
happening inconsistently. We can rarely duplicate the error, but see it
showing up in log files, and a QA can periodically replicate it.
So do you think it be related to a bad Apache process, rather than software
You're running into this problem:
http://perl.apache.org/docs/1.0/guide/porting.html#Name_collisions_with_Modules_and_libs
The best solution is to put your subs into a namespace with a package
declaration.
Sorry I don't think so since both the template name and the subroutine name are
Hello,lists,
I have a strange problem for my modperl programs which are run under
Apache::Registry (MP1).
In my script I require some templates like:
require templates/groupshow_head.tpl;
Here groupshow_head.tpl is a template file which primarily print chunk of HTML
codes in subroutine,like:
unsubscribe
Hello,
To unsubscribe from the modperl user lists,please send an empty email to [EMAIL
PROTECTED]
--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/
Hello,
Have you loaded the ModPerl::Registry?How can you know your modperl scripts
can't be run?
When you meet problems,you can look at the error_log where you could find most
of the problems.
And,here is my mp2 config,it can run well for me:
PerlModule ModPerl::Registry
Directory /pub
I am not sure, but I think the problem you have is that Apache::DBI ignores
any disconnect() calls on database handles, and doesn't actually disconnect.
That's true.Apache::DBI ignores all the disconnect() calls.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
Hello,list,
I want to get the remote client's IPs in Apache::Request like the method of
'$q-remote_host()' in CGI.pm.
Can you help me?Thank you.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
Sorry for the trouble,I've got it.It's '$r-get_remote_host'.
-Original Message-
From: Jeff Pang [EMAIL PROTECTED]
Sent: Sep 26, 2006 5:22 AM
To: modperl@perl.apache.org
Subject: How to get remote host address in Apache::Request
Hello,list,
I want to get the remote client's IPs in Apache
it and take a look at it.the url is:
http://home.earthlink.net/~pangj/tmp/compile.apache.err.gz
I'm really appreciated for the farther helps.
-Original Message-
From: Philip M. Gollucci [EMAIL PROTECTED]
Sent: Sep 20, 2006 4:24 PM
To: Jeff Pang [EMAIL PROTECTED]
Cc: modperl@perl.apache.org
)(.text+0x2bdd): In function
`boot_Apache(...)(long double, void,...)(long double) static':: undefined
reference to `Perl_Gthr_key_ptr'
...
lots of these.
Could you tell me how to resolve it?Thanks.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
this is the place to ask, but I am looking for a good
mod_perl2 book, which is not on an introductory level, but delves a bit
deeper. Are any of these in existance yet?
--
Ole Kasper Olsen
Information Systems Developer
Opera Software ASA
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
under CGI, where code compiling really hurts you.
- Perrin
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
a
warning?
Why does it appear?
I have followed the suggestions, searched the web, and I have also put in
httpd.conf:
EnableSendfile Off
But these errors continue to appear.
Teddy
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
,copying,printing,distributionoruseofthistransmissionisstrictlyprohibited.Ifyouhavereceivedthistransmissioninerror,pleaseimmediatelynotifythesenderbytelephoneorreturnemailanddeletetheoriginaltransmissionanditsattachmentswithoutreadingorsavinginanymanner.
--
Jeff Pang
NetEase AntiSpam Team
http
period, httpd progress must be
reload or restart so that to see the change. If is it possible to see
the change without reload httpd?
--
perl -e 'print unpack(u,62V5N\FME;G\!EFQ`9VUA:6PN8V]M\[EMAIL PROTECTED]
)'
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
: debug modperl program
hi,
Debuging a perl program at command line is using -d option, but this
can't be used in a modperl program, any doc or examples on this topic
about how to debug a modperl program?
--
perl -e 'print unpack(u,62V5N\FME;G\!EFQ`9VUA:6PN8V]M\[EMAIL PROTECTED]
)'
--
Jeff Pang
Hi,lists,
I am new to mod_perl.I have a simple mod_perl script running under
Apache::Register.When it run,I found many error messages appeared in
logs/error_log.
The program is shown below:
use strict;
use warnings;
use CGI;
use CGI::Cookie;
use vars qw($q $sessionID);
$q = new CGI;
init();
73 matches
Mail list logo