On Thursday 03 November 2005 17:08, Geoffrey Young wrote:
> > so, please try the attached patch to Apache::Test. hopefully this fixes
> > things once and for all (without breaking more stuff :)
>
> Torsten, any luck with this?
yep, it works:
0 [EMAIL PROTECTED]:~/work/libapreq-1.33$ perl Makefil
: PAUSE <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
The following report has been written by the PAUSE namespace indexer.
Please contact modules@perl.org if there are any open questions.
Id: mldistwatch 676 2005-11-24 20:38:34Z k
User: OPI (Torsten Fo
Hi,
sorry for the late answer.
I'll try to explain what Apache::DBI and my module does. Maybe it will then be
clear why my module cannot be compatible with Apache::DBI and why it
therefore must be an extra module. In fact I thought at first to create a
quick patch to Apache::DBI. It would have
On Monday 05 December 2005 18:57, Perrin Harkins wrote:
> On Mon, 2005-12-05 at 17:51 +0100, Torsten Foertsch wrote:
> > With Apache::DBI::Cache on the other hand handles are cached only when
> > they are free.
>
> Now I understand -- you are using the cache as a way to
On Thursday 08 December 2005 11:42, [EMAIL PROTECTED] wrote:
> Is there a way that I can find out how a user has requested a page?
> Everything I have read suggests that I can do it by
> $r->parsed_uri->scheme, but this always seems to yeild undef.
This is for mp2:
In the response phase you can u
On Friday 09 December 2005 17:07, Michael Peters wrote:
> The current linux 2.6 kernels do not report COW memory correctly.
That is not entirely true anymore. Since 2.6.14 /proc/PID/smaps are included
in the vanilla kernel. On demand I can provide a patch for
linux-2.6.13-3-default the kernel th
Hi,
what is the canonical way to change "Options" from a handler?
Apache2::Access::allow_options is read-only. Various attempts with
$r->add_config in the uri translation and header parser phases failed:
$r->add_config([q{Options +ExecCGI}]): $r->add_config() has failed: Options
not allowed he
On Saturday 07 January 2006 10:17, Philippe M. Chiasson wrote:
> Well, you could do add_config(
>
> ProxyPassReverse http://...
> );
>
> No ?
I tried that. But is not allowed inside a block:
$r->add_config() has failed: cannot occur within
section
Torsten
pgpW16Rg99acR.pgp
Description:
On Saturday 07 January 2006 18:39, Philip M. Gollucci wrote:
> > As a more generic solution, this might make sense. On first glance, your
> > patch looks sane, but I won't have the time to really look at it until
> > Jan 15th, so if anybody else feels like writing a few tests for this and
> > beat
Hi,
consider this handler:
sub handler {
my $r=shift;
$r->content_type('text/plain');
my $ctx={foo=>1, bar=>2};
$r->pnotes(x=>$ctx);
$r->print( "\n".Dumper( $r->pnotes('x') ) );
undef $ctx;
$r->print( "\n".Dumper( $r->pnotes('x') ) ) ;
return
On Monday 09 January 2006 20:22, John ORourke wrote:
> Torsten - for a workaround try not re-using $ctx until it's gone out of
> scope, like this:
>
> $r->content_type('text/plain');
> {
> my $tmp={one=>1,two=>2};
> $r-
On Monday 09 January 2006 21:11, Philip M. Gollucci wrote:
> Feel free to submit a documentation patch that would alleviate
> confusion.
How about that?
Torsten
--- mod_perl-2.0.2/docs/api/Apache2/RequestUtil.pod~ 2005-10-21 02:05:00.0 +0200
+++ mod_perl-2.0.2/docs/api/Apache2/RequestUtil
On Tuesday 10 January 2006 16:28, Geoffrey Young wrote:
> Torsten Foertsch wrote:
> > On Monday 09 January 2006 21:11, Philip M. Gollucci wrote:
> >>Feel free to submit a documentation patch that would alleviate
> >>confusion.
> >
> > How about that?
>
&
Geoff,
On Tuesday 10 January 2006 19:21, Geoffrey Young wrote:
> > Nevertheless, I really think it is a bug, since it provokes action at a
> > distance.
>
> I think it's best filed under "feature" - the mp1 behavior is not going
> to change and has been more than ok for years and years now, and it
On Wednesday 18 January 2006 02:41, Philippe M. Chiasson wrote:
> I've finally got around looking at this patch, and it looks good. I tweaked
> it some (whitespace and formatting) and checked it in as r370001 & r370002.
Thanks,
Torsten
pgpDgLxFq62MQ.pgp
Description: PGP signature
On Thursday 02 February 2006 23:14, Philippe M. Chiasson wrote:
> > I suggest the patch below to solve the problem.
>
> Should be OPT_ALL instead of (~0), but it's a sane patch IMO.
I almost agree, but it should read
OPT_ALL|OPT_INCNOEXEC|OPT_SYM_OWNER|OPT_MULTI
> Really, what's needed is some
On Wednesday 08 February 2006 07:13, Ken Perl wrote:
> I see a info in the error.log when I access the uri / and works fine,
> [Wed Feb 08 13:22:35 2006] [info] [client 10.0.0.1] Module bug?
> Request filename is missing for URI /
>
> Is the info reported by modperl2? anything wrong?
You have writ
On Thursday 09 February 2006 07:35, Ken Perl wrote:
> I know Apache2:SizeLimit works ony with non-threaded MPMs, but I don't
> know how to fix the issue, any comments?
use apache with the prefork MPM. This is usually specified when you compile
your apache by passing '--with-mpm=prefork' to the co
On Thursday 09 February 2006 19:14, Boysenberry Payne wrote:
> What are the ramifications of making AutoCommit => 0?
> It going to bite me in the but later?
I prefer to connect every connection with AutoCommit=>1. Then if I need a
transaction it is started with $dbh->begin_work and finished with
Hi,
I want to write a test that uses a frontend/backend setup. I
t/conf/extra.conf.in I wrote
# backend config
Now I want to configure the frontend proxy
RewriteRule ^/proxy/(.+) @Backend@/$1 [P]
Is something like that supported?
Torsten
pgpkhHJOPaHUr.pgp
Description: PGP signature
Hi,
I want to test a module that uses an Apache 2.2 feature. The module uses
response tests where the httpd configuration is written directly in the
test.pm.
I need something like this:
__END__
= 2.2.0>
AllowOverride AuthConfig Options=Indexes,FollowSymLinks
Unfortunately, IfVersion is valid
On Tuesday 21 February 2006 19:17, Geoffrey Young wrote:
> > I need something like this:
> >
> > __END__
> > = 2.2.0>
> > AllowOverride AuthConfig Options=Indexes,FollowSymLinks
> >
> >
> > Unfortunately, IfVersion is valid only from 2.0.56 on. Is there a
> > workaround in mod_perl or AT?
>
> I un
On Tuesday 21 February 2006 20:57, Geoffrey Young wrote:
> well, I'm not sure I follow you, then. the only real reason for wanting
> what you asked for in the first place was to prevent httpd from crashing on
> startup because of configurations options it doesn't understand. if you
> can start ht
On Tuesday 21 February 2006 21:42, Geoffrey Young wrote:
>
> = 2.2.0>
> AllowOverride AuthConfig Options=Indexes,FollowSymLinks
>
>
> Options None
> Options Indexes FollowSymLinks
>
>
>
> # no mod_version so we can't be 2.2 or greater...
>
On Thursday 23 February 2006 23:41, Philippe M. Chiasson wrote:
> It used to pass in NULL all the time, until someone pointed out that it was
> causing a bug with certain directives. So the fix was adding the $path
> argument to add_config().
That someone was me. And it used to pass "/" as path. I
On Friday 24 February 2006 12:50, Torsten Foertsch wrote:
> I think I'll submit the patch later today.
Here it is.
The code runs for Apache 2.0 and 2.2. For Apache 2.0 when reading override
options it returns simply a bitmask with all options allowed. That makes
Apache 2.0 and 2.2 co
On Friday 24 February 2006 20:56, Torsten Foertsch wrote:
> Here it is.
I forgot, it is against 2.0.2.
pgp19SmkUsmLi.pgp
Description: PGP signature
On Friday 24 February 2006 21:06, Philippe M. Chiasson wrote:
> Yeah, I noticed, as it doesn't apply cleanly against svn HEAD. Could you
> checkout http://svn.apache.org/repos/asf/perl/modperl/trunk/ and generate
> your patch against it instead ? It'll make it much easier to
> apply/test/review, th
On Wednesday 01 March 2006 23:20, Glenn Martin wrote:
> Sounds great, but how would i do something simular to:
>
> $r->add_config([sprintf(' "%s/?">', $uripath),
> 'DirectoryIndex .',
> 'Options +Indexes',
> 'Dav sv
On Thursday 02 March 2006 15:34, Geoffrey Young wrote:
> thanks for the detailed explanations. torsten++ :)
>
> > That leads to an error saying that " > point.
> >
> > But, a few thing cannot be applied by means of $r->add_config. For
> > example "AllowOverride" needs a "Directory" block
>
> I thi
This email is to announce the new Apache2::Translation:
http://search.cpan.org/~opi/Apache2-Translation-0.08/lib/Apache2/Translation.pod
Apache2::Translation can be looked at in 2 ways:
1) it is similar to mod_rewrite in that it lives mostly in the uri translation
phase where it can change/route
This email is to announce the new Apache2::POST200:
http://search.cpan.org/~opi/Apache2-POST200-0.03/lib/Apache2/POST200.pod
The module implements an output filter that intercepts replies with HTTP code
200 to request using the POST method. It turns them into redirects (HTTP code
302) saving the
On Thursday 09 March 2006 04:15, Tyler MacDonald wrote:
> Foo Ji-Haw <[EMAIL PROTECTED]> wrote:
> > The basis for the need is because I am thinking of having my process
> > call itself (but another uri) to activate another process.
> >
> > Appreciate any tips you can offer. Thanks.
>
> Acco
On Monday 13 March 2006 18:45, Bjørn Erik Jacobsen wrote:
> Syntax error on line 233 of /data/apps/apache2/conf/httpd.conf:
> $parms->add_config() has failed: Option Indexes not allowed here at
> /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/Apache2/PerlSections
> .pm line 203.\n
Is this Apach
On Wednesday 15 March 2006 18:23, Geoffrey Young wrote:
> > + my $foo = 123;
> > + $r->pnotes('foo' => $foo);
> > + $foo = 456;
> > + $r->pnotes('foo') # <== now 456 (in 2.0.2)
> > + $r->pnotes('foo') # <== left at 123 (in 2.0.3)
>
> actually, I'm re-thinking my stance on this. a common use of pno
On Wednesday 15 March 2006 18:55, Perrin Harkins wrote:
> On Wed, 2006-03-15 at 12:23 -0500, Geoffrey Young wrote:
> > I actually thing that would be somewhat common. and as I understand
> > things, the fix would require the middle step to be
> >
> > -- next handler
> > my $o = $r->pnotes('foo
On Thursday 16 March 2006 00:39, Geoffrey Young wrote:
> >>>in order for $o to maintain it's internal state. is that right? if so,
> >>> I don't like that very much.
> >
> > It's not right. You are confusing scalars with references in that
> > example.
>
> ook, my bad - I thought the proposed "so
On Thursday 23 March 2006 00:02, Tom Schindl wrote:
> how does Apache-Test retrieves the servername inserted into httpd.conf
> is it possible to access this value while running tests?
I think, Apache::Test::vars->{servername}.
$ APACHE_TEST_HTTPD=/opt/apache22/sbin/httpd perl -MApache::Test -MDat
On Sunday 26 March 2006 17:13, Dennis Sinelnikov wrote:
> Here is the code in my httpd-ssl.conf that works:
>
> DAV svn
> SVNPath /home/svnroot
> SSLUserName SSL_CLIENT_S_DN_CN
> AuthzSVNAccessFile /usr/local/apache2/conf/svnauthorization
>
>
> However, I need the UID, and SSL_CLIENT_S_DN
On Sunday 26 March 2006 21:37, Dennis Sinelnikov wrote:
> Right, read the doc over 20 times already :)
> It could be my environment or the client cert I'm using.
> I did try different environment configurations (i.e. older openssl
> versions). I got tired of looking through apache's c code and
> op
On Monday 03 April 2006 20:20, John Russell wrote:
> sub handler($$) {
http://perl.apache.org/docs/2.0/user/porting/porting.html#Method_Handlers
maybe that is your problem.
Torsten
pgpLWFPZiFN26.pgp
Description: PGP signature
On Tuesday 04 April 2006 01:37, John Russell wrote:
> sub authenticate {
>
> my $r = shift;
>
> my $dbh;
>
> $dbh = DBI->connect("dbi:Oracle:XE", "WEB_LOGIN", "",
> {RaiseError => 0, AutoCommit => 1, PrintError => 0})
> || return "Error connecting.\n$DBI::e
On Monday 03 April 2006 23:18, Michael McLagan wrote:
> "Main" to me says the one that was received by the server over the
> internet -- from the client -- ie no matter how many requests deep
> we are at any given point, main() always returns the top most item
> on the pile. In tha
On Thursday 06 April 2006 13:52, Graf László wrote:
> $r->internal_redirect("/wimap/index.html");
you are redirecting to yourself.
> return Apache2::Const::OK;
> }
>
> 1;
...
> >> LoadModule perl_module modules/mod_perl.so
> >> PerlRequire /usr/local/apache2/conf/mod_perl/imap_start.pl
> >>
thi
On Monday 01 May 2006 21:00, Perrin Harkins wrote:
> No. The current best bet is Linux::Smaps, which Apache2::SizeLimit now
> uses.
For 2.4 kernel series the figures got from /proc/PID/statm are as valid as the
figures from Linux::Smaps for kernels 2.6.14 and higher. For 2.6.0 up to
2.6.13 ther
On Friday 16 June 2006 17:23, Perrin Harkins wrote:
> Dave Rolsky wrote:
> > Apache::SizeLimit has a long-standing bug on Linux where it never
> > actually kills a child, because of Perl's caching of ppid info
> > internally, and the way this interacts with Apache's forking.
> >
> > See this thread
Hi,
I want to distinguish between the 2 cases if a module is loaded from the
master apache or at runtime from a child apache. Ideads for both mp1.x and
mp2.x are welcome.
I tried to call ModPerl::Util::current_callback with mp2.0.2 just after
compilation and a segfault.
Thanks,
Torsten
pgpm
On Tuesday 01 August 2006 16:23, Reif Peter wrote:
> How do I configure my server, so that it does not
>
> I have ssi enabled on my web server. I also have a content filter in
> mod_perl:
>
> PerlOutputFilterHandler Apache::MyFilter
>
> How do I configure the server that it does not send requ
On Wednesday 16 August 2006 02:44, Jesse Erlbaum wrote:
> think "better
> server-side includes"
Are you aware of Apache::IncludeHook?
Torsten
pgpQwNFblgmUS.pgp
Description: PGP signature
On Tuesday 17 October 2006 19:15, Perrin Harkins wrote:
> > I could of course "killall" the apache processes brutally, but
> > even then I can't do "apachectl start". The server won't
> > start up again!
>
> So if you send the kill yourself, it does stop? And what do you mean by
> "won't start up
On Monday 06 November 2006 17:48, Kjetil Kjernsmo wrote:
> I'm working on improving the scalability and performance of our app. It
> is rather bad, and I noticed that not many minutes after restart, the
> amount of shared memory is down to 10% of the total memory (and I'm at
> least at 1/3 on my ho
On Tuesday 07 November 2006 13:28, Kjetil Kjernsmo wrote:
> > What operating system is it? If linux see
> > http://search.cpan.org/~drolsky/Apache-SizeLimit-0.9/lib/Apache/SizeL
> >imit.pm#linux
>
> Yep, it is GNU/Linux, kernel 2.6.17.
>
> That's very interesting. I hadn't read up on that, because
On Friday 24 November 2006 12:09, Radoslaw Zielinski wrote:
> I'm redirecting to a mod_perl handler with ErrorDocument:
>
> Order allow,deny
> ErrorDocument 403 /login
>
> Order deny,allow
> SetHandler modperl
> PerlResponseHandler My::Handler
>
>
> On an unauthorized request,
On Tuesday 28 November 2006 21:31, Patrick Galbraith wrote:
> Quick question - how does one do a repost (using POST, not GET) form
> values? This would be in a redirect TransHandler.
Your only chance is to proxy the request to the other server. You cannot use a
Location header to trigger a POST.
On Tuesday 28 November 2006 22:37, Robert Landrum wrote:
> > On Tuesday 28 November 2006 21:31, Patrick Galbraith wrote:
> >> Quick question - how does one do a repost (using POST, not GET) form
> >> values? This would be in a redirect TransHandler.
> >
> > Your only chance is to proxy the request
On Wednesday 13 December 2006 02:03, Alex Beamish wrote:
> Interesting suggestions, thank you, and I'm coming around to the idea that
> a daemon will need to be used for the heavy lifting .. and then perhaps
> mod_perl can communicate with the daemon using named pipes ..
>
> The whole point of this
Hi,
what are the pros and cons of Apache2::Request vs. CGI in a MP2 environment?
Torsten
pgpw866vf3vwx.pgp
Description: PGP signature
On Friday 19 January 2007 08:01, Daniel Risacher wrote:
> From within a mod_perl request handler, fileno(STDOUT) returns -1, which is
> the same thing I got from $r->FILENO.
>
> Any other ideas?
$r->connection->client_socket is an APR::Socket. It corresponds to an
apr_socket_t in C. This structur
On Monday 05 March 2007 12:42, Sergey Borodich wrote:
> I need some technique what work as
> PerlRequire (or PerlPostConfigHandler)
> at apache start (it run only once)
>
> but I need similar technique for stop apache
> it must run if "apache stop" only once
>
> it need for cleanup shared memory be
On Monday 26 March 2007 16:57, Perrin Harkins wrote:
> On 3/26/07, Anthony Gardner <[EMAIL PROTECTED]> wrote:
> > Can I only use internal_redirect in handlers or is it possible to use it
> > within a cgi script calling another cgi script?
>
> If by "CGI script" you mean something running ModPerl::R
On Monday 26 March 2007 17:51, Anthony Gardner wrote:
> As for the $r, it's coming from Apache->request()
So, it's mp1 then. Set PerlSendHeader to On then try the approach given in my
previous mail. I don't know for sure because I have switched to mp2 several
years ago.
> but we are
> experi
On Wednesday 25 April 2007 12:25, Beginner wrote:
> I was expecting Server: Apache/2.0.52 (Red Hat) mod_perl (some
> version number)
>
> I tried to the package manager to install mod_perl and it offers me
> mod_perl-1.99-16.4
Both are quite old. Especially the mod_perl version is BETA and offers a
On Thursday 03 May 2007 02:20, Jonathan Vanasco wrote:
> I'm cleaning up some code for a dispatch class I wrote, and got very
> confused:
>
> I found that i was accessing location from $r ( ApacheRequestReq
> Object )
>
> location isn't a documented function of $r though. why is that
> working fo
On Thursday 03 May 2007 16:34, Jonathan Vanasco wrote:
> On May 3, 2007, at 2:54 AM, Torsten Foertsch wrote:
> > http://perl.apache.org/docs/2.0/api/Apache2/
> > RequestUtil.html#C_location_
>
> Thats even odder...
>
> $r is a RequestRec, not RequestUtil
>
On Thursday 03 May 2007 18:09, Jonathan Vanasco wrote:
> On May 3, 2007, at 10:54 AM, Torsten Foertsch wrote:
> > You see the location function is created directly in the
> > Apache2::RequestRec
> > namespace (the PACKAGE = ...).
> >
> > The perl equival
On Tuesday 15 May 2007 22:33, Walt Reed wrote:
> I would prefer however to put all my test modules for this migration in the
> /usr/local/apache2/perllib space, but looking at the mod_perl configure
> options, I didn't see which option specified this... MP_AP_PREFIX?
> MP_AP_DESTDIR? Neither one of
On Thursday 17 May 2007 00:13, Tyler Bird wrote:
> I am setting up a new server with mod_perl + apache 2.0 + some legacy code
> and am sporadically rececing a segmentation fault to my apache logs like
> so.
Maybe this helps:
http://perl.apache.org/docs/2.0/devel/debug/c.html
Is your code by chanc
On Friday 01 June 2007 12:15, Daniel Eckstein wrote:
> I am trying to modify incoming http cookie on the fly. The setup is like
>
> user->webserver->bea connector->bea appserver
You can certainly do that using a connection input filter. But I'd say that is
much too complicated.
Apache processes
On Monday 04 June 2007 18:43, Jani M. wrote:
> For comparison, a server with one gig of memory can run roughly 600
> preforked workers with some spare memory left for disk caching. Any more
> than this, and performance drops as disk access increases.
These figures match my observations. It also me
On Wednesday 06 June 2007 10:55, Jani M. wrote:
> (gdb) btt 4
> [Switching to thread 4 (process 2133)]#0 0xb77eb15a in
> modperl_mgv_as_string (my_perl=0x8662c58, symbol=0x8178190, p=0x8938438,
> package=0) at modperl_mgv.c:399
> 399 modperl_mgv.c: No such file or directory.
> in
On Tuesday 12 June 2007 17:40, Jani M. wrote:
> After a few moments of trial and error, I tracked the problem down to
> $r->push_handlers(PerlFixupHandler => \&fixup_handler). The segfaults
> start even if this is the only thing the original postreadrequesthandler
> does, and even if the fixuphandl
On Wednesday 20 June 2007 09:45, Cyril SCETBON wrote:
> Are we able to disable the chunk transfer ? To send all in one shot ?
Add a Content-Length output header and avoid output filters that can change
the content length.
Or use HTTP/1.0
Torsten
pgpytV5g1jL48.pgp
Description: PGP signature
On Tuesday 24 July 2007 11:21, Gatsby wrote:
> The problem is, if I output $$, then it only ever outputs the process ID of
> the parent httpd process, not the actual child process itself.
This is a known feature (at least I have already met it). It is caused by
apache doing the fork by itself in
On Thursday 02 August 2007 17:07, Carl Johnstone wrote:
> The problem I've got is that I'd like to put the user_id in the access logs
> so that our log analysis software can make use of it.
>
> Setting apache->user correctly logs the user at the back-end however the IP
> addresses are wrong, being
On Friday 03 August 2007 12:29, Jen mlists wrote:
> I meet a problem about getting client's original IP.
> Some clients use proxy servers to access our sites,and I need to get
> their original IPs instead of proxy servers' IPs.
>
> In CGI I can write it like:
>
> my $ip = $ENV{'HTTP_X_FORWARDED_FO
On Friday 03 August 2007 14:02, Jen mlists wrote:
> No.
To which part of my answer to your question relates that "No"?
> Here both PHP and CGI scripts can get the X_FORWARDED_FOR ip,but
> modperl can't.Is the %ENV hash not useful under modperl?
Apache maintains an internal representation of the
On Tuesday 25 September 2007 19:52, Fred Moyer wrote:
> I took a quick swing at putting one together but my mod_perl environment
> is a bit screwed up right now. Can you see if it runs on your setup?
With a few tweaks the test runs in my environment (trunk+2.2.6-worker). But it
succeeds in both
On Saturday 06 October 2007 03:52, Max Kanat-Alexander wrote:
> I have an x86_64 machine running RHEL5 but with the mod_perl
> 2.0.3 from Fedora 7.
>
> Without Linux::Smaps installed, Apache2::SizeLimit thinks my
> processes are taking up 300MB and terminates them after every hit.
> ("t
On Sunday 07 October 2007 15:31, Clinton Gormley wrote:
> > -no warnings qw(uninitialized);
> > +no warnings qw(uninitialized portable);
>
> This patch certaily removes the warnings, and all of the tests pass. But
> does that mean that the module works correctly?
Yes, I think so. The point is 64bi
On Sunday 07 October 2007 23:29, Max Kanat-Alexander wrote:
> So it looks like it works fine for what smem is doing, but it
> somehow doesn't work right for Apache2::SizeLimit.
In your modperl environment "use warnings FATAL=>qw/all/" is active. Hence,
the portable warning is turned into
On Monday 08 October 2007 08:35, Max Kanat-Alexander wrote:
> No, because it still doesn't work, even with the patch. I don't
> even see the warning. The error I get from SizeLimit is:
>
> Can't call method "all" on an undefined value at
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thr
Hi,
this version mainly disables the portable warning. Further the constructor now
throws an exception if the smaps file cannot be read. Also a short note in
the docs about swapped pages and mlockall(2) was added.
Torsten
-- Forwarded Message --
...
The uploaded file
Li
On Thursday 11 October 2007 10:59, Michael Lackhoff wrote:
> The problem seems to be that the modules are read only once since the
> namespaces are the same under myapp and myapp_test and there don't seem
> to be per virtual host copies of the modules. So, whatever is called
> first wins -- or is m
On Sunday 21 October 2007, John ORourke wrote:
> 1. do Fixup for /image/12345/something.gif (return OK or DECLINE -
> doesn't matter which)
> 2. (other modules fixup handlers run because fixup is RUN_ALL)
> 3. do Trans for subrequest /something.gif
> 4. do MapToStorage, Access, Authen, Authz, Type,
Hi,
I have often the problem to switch between prefork and worker MPM. So I
thought of using a separate build directory for each MPM while having a
common source directory. This led to the attached script.
It creates 3 directories, mymodperl, mymodperl-worker, mymodperl-prefork,
checks http://
On Monday 22 October 2007, Vishnu Mohanan wrote:
> When I checked in the system, there is no folder named "APXS".
> The APXS folder is not creating in the "/usr/local/apache2/bin/" directory.
> I am using Fedora 5 version.
> Is APXS is necessary? Then how will we create that?
apxs is a program dis
On Tue 27 Nov 2007, David Nicol wrote:
> $ENV{PATH_INFO} is available in mod_perl is it not?
Do not rely in path_info. It is computed in map_to_storage as the remaining
part of the uri after the path on disk runs out. So if /parts exists on disk
path_info is /number. Otherwise it is /parts/numbe
On Mon 03 Dec 2007, John ORourke wrote:
> I have some apps where users want to add extra domains and I'd like to
> do it on the fly if possible - in other words, modify the ServerAlias
> list from within mod_perl. Does anyone have any tips/pointers/archives?
You mean you need a PerlTranslationHan
On Wed 12 Dec 2007, Rolf Schaufelberger wrote:
> I'm on the way moving my app from mod_perl1 to mod_perl2.
> The app is build with HTML::Mason an MasonX::WebApp.
> Now I have a problem when trying to install a cleanup_handler.
> My expectations are, that the funtcion I call returns to the browser a
On Fri 14 Dec 2007, Torsten Foertsch wrote:
> So, I want to write a number of key-value pairs to a bdb database as a
> transaction.
Sorry for the SPAM. I forgot the -Txn flag to BerkeleyDB::Btree->new.
Torsten
Hi,
this is not really a mod_perl question but I know there is wisdom about it on
the list.
So, I want to write a number of key-value pairs to a bdb database as a
transaction. Here is my code:
my ($db, $env)=($I->bdb_db, $I->bdb_env);
my $txn=$env->txn_begin;
$txn->Txn($db);
my $count
On Wed 19 Dec 2007, Adam Woodworth wrote:
> Content-Length: 123434 <-- **missing from above**
Are you really sure you hit your application in these cases? If you don't set
the Content-Length header. Maybe a cache in between does.
Torsten
Hi,
I have looked through http://perl.apache.org/docs/general/testing/testing.html
for a list of variables available for @@ substitution. After that I thought
the best documentation is the code and found in TestConfigParse.pm this
function:
sub apply_take1 {
my($self, $c, $directive) = @_;
On Thu 10 Jan 2008, Vegard Vesterheim wrote:
> The problem I encounter is that the authenticated user is not
> propagated into to the subrequest, so my auth-handler can not do its
> job. The following code is from Apache2::AuthCookie.pm:
>
> unless ($r->is_initial_req) {
> if (defined $
Hi,
I know the modperl mailing list has been used from time to time for job offers
or applications. I'd like to do the latter.
I am a freelance programmer living in Germany near Heidelberg. My native
language is German. I also possess English and Russian.
My knowledge of Apache, mod_perl and r
On Wed 30 Jan 2008, titetluc titetluc wrote:
> This would mean that :
> . MySessionModuleVerifyCookie would be first called, verifying if the
> cookie is present and correct
> . If no cookie, then basic authent is requested
> . if basic authent ok, then MySessionModuleGenerateCookie generates a va
On Wed 06 Feb 2008, titetluc titetluc wrote:
> The module I am developing has to delete the cookie if it is not refreshed
> regularly.
> The question: how can I manage this timeout inactivity ?
> The best solution would be to use a mechanism where callbacks (deleting the
> cookie rfom the database)
On Sun 10 Feb 2008, James Breat wrote:
> to resolve handler `ModPerl::Registry': Can't locate
> ModPerl/Registry.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8
> /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /
Hi Fred,
On Wed 20 Feb 2008, Fred Moyer wrote:
> Is it possible to dynamically add core output filters such as INCLUDE with
> $r->add_output_filter('INCLUDE')? The docs indicate that
> PerlSetOutputFilter INCLUDE is ok, but it looks like $r->add_output_filter
> is restricted to perl handlers. I
On Fri 22 Feb 2008, Victor Danilchenko wrote:
> or to grab a given file from disk?
Perhaps $r->sendfile($filename)? Defined in Apache2::RequestIO.
Torsten
101 - 200 of 332 matches
Mail list logo