what I can do there too.
- Barrie
--
Eric
);
}
But what?
--
Eric Jain
to iterate the keys using the array rather than the keys function on the
hash part.
I think there is source code for this publicly available, but I forget
where I saw it. You can get some docs from perldoc perltie though.
Tie::IxHash
--
Eric
my testing for me... :-)
Sure thing, although I doubt many mod_perl users are using Perl
5.6 -Dusethreads
in production environments.
--
Eric
much of either this last year, however, I'm hoping to get
a new beta DBI release out this week. Maybe...
Tim I hope you plan to integrate Doug's patch which makes it possible to use
DBI with Perl 5.6 -Dusethreads. Thanks!
Tim.
--
Eric Cholet
://www.deep-purple.com
Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
-
--
Eric Cholet
will trigger the segfault. Well, under 5.00502 it does, but under 5.6
I get an (expected) 500 internal server error.
--
Eric Cholet
st's envelope sender, then it means it's a very broken mail server.
If this happens repeatedly the list admin will unsubsribe the offending
user.
--
Eric
On Tue, May 30, 2000 at 02:30:36PM -0700, ___cliff rayman___ wrote:
actually \n\r\ is really how it is supposed to be.
i am sure you will find it in the RFC's.
most browsers seem to be okay with \n's only.
Actually it's \r\n, unless you're on a Mac :-)
--
Eric Cholet
for the patch!
--
Eric
or check if it should be reloaded...)
This might be the cause of its respectlessness :-)
--
Eric Jain
I've been lurking on this list for a long time, learning tons, implementing some
things on
my own, helping out as I can (which isn't much).
I feel like I know all the frequent posters on the list by now. It's funny how that
happens, but I can recognize each person's "tone," like a familiar
LL. Your build is ok, I'll fix this for
the next mod_perl version
--
Eric
Stas, this thread is very interesting. Guide material?
-Location: 01.xml
Vary: negotiate
TCN: choice
Connection: close
Content-Type: text/html
This will obviously not be cached by any proxies :-(
So how do I get rid of Content-Location, Vary and TCN?
--Eric Jain
and Solaris came up
on comp.lang.perl.moderated a few weeks ago, check news archives the solution
was posted. I don't have it handy because I don't use Solaris.
t/configYour vendor has not defined the Sys::Syslog macro _PATH_LOG at
--
Eric
-Message d'origine-
De: Benedict Lofstedt [SMTP:[EMAIL PROTECTED]]
Date: jeudi 4 mai 2000 15:38
À:Eric Cholet
Cc: [EMAIL PROTECTED]
Objet:RE: how do I use perl sections
Eric,
push @ScriptAlias, [ "/cgi-$_", "/users/$_/cgi-bin" ];
http://www.modperl.com/book/chapters/ch8.html#Configuring_Apache_with_Perl
See the paragraph: "Directive is Repeated Multiple Times"
--
Eric
;
I guess this would let you have your virtual host setup only on the backend
server.
The patch is against the 1.3 CVS tree.
--
Eric
Index: src/modules/proxy/mod_proxy.c
===
RCS file: /cvs/apache/apache-1.3/src/modules/proxy/mod
(http://www.modperl.com/).
also, know to fetch the URL. Is it stored in the %ENV?
$r-uri
'perldoc Apache' will give you a list of all the API methods.
--
Eric
subrequest in the request chain.
Also see http://www.modperl.com/book/chapters/ch9.html but be aware
that the perldoc is more up to date.
--
Eric
number of
threads/child (= Apache/pthread)
spmt_os2 .. Single Process Model with Threading on OS/2
winnt . Single Process Model with Threading on Windows NT
I believe the first 3 run only under Unix.
--
Eric
?
Yes it is very common practice, and so is scanning for open proxies
on ports 80, 8080 and 1080. Here's a link to a list of open proxies
and a faq that explains their use.
http://www.cyberarmy.com/lists/proxy/
--
Eric
instead of the other way around!
use mod_perl (8080, 3); # (port, #processes)
Sorry, feeling philosophical this morning. Thanks for the report.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314
by the opposite, my Alias directives are ignored
when Rewrite kicks in. I assume it depends on the Apache module order,
and as Ask explained when one trans handler returns OK the other is
of course ignored, so I too had to convert my Alias statements to
rewrite rules.
--
Eric
I have a plain-old
CGI script configured to be loaded with Apache::Registry
Location /cgi-bin/myscript.plSetHandler
perl-scriptPerlHandler Apache::RegistryOptions ExecCGIPerlSendHeader
On/Location
In this
configuration, I see the BEGIN block of my script get executed twice per child
ve to turn that into a GET:
if ($r-method eq 'POST') {
$r-method('GET');
$r-method_number(M_GET);
$r-headers_in-unset('Content-Length');
}
--
Eric
? Or just a flat url space, using mod_rewrite on the
front-end to translate the urls?
The modperl guide is sadly lacking any information in this area, so
your input will be valuable.
Thanks,
--
Eric
1.5
diff -b -u -u -r1.5 URI.xs
--- URI.xs 1998/11/13 03:27:52 1.5
+++ URI.xs 2000/04/10 10:57:54
@@ -183,6 +183,9 @@
CODE:
get_set_PVp(uri-uri.port_str,uri-pool);
+if (items 1) {
+uri-uri.port = (int)SvIV(ST(1));
+}
OUTPUT:
RETVAL
--
Eric
mod_perl = 1.22, i.e. it can be put
in the main server config and will be inherited (merged) in virtual hosts.
--
Eric
causes the page to read
Latest stable release is 1.22, get it from this site or from mod_perl
programmers.
Which may cause some headscratching.
It's fixed, thanks!
Dan
--
Eric
rong...can this be done in some other way ?
Yes, it's wrong because the job of the translation phase is precisely to
translate from url to file, therefore it cannot operate on files!
PerlTransHandler Apache::MyHandler
...
sub handler
{
my $r = shift;
return DECLINED unless $r-uri =~ /\.xml$/;
...
}
--
Eric
returning a message saying the
attack failed would help too.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
of as a
mod_perl script. CGI scripts can run as root without running the server as
root.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
st 21 |")) {
print while FILE;
close FILE;
}
I think there's a Net::Traceroute on CPAN, might want to check that out to
avoid the fork.
--
Eric
-Original Message-
From: Sam Carleton [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 07, 2000 7:18 AM
To: mod_perl Mailing List
Subject
--
Eric
to import the relevant
LOGLEVEL_XXX constants.
Let me know if this works,
--
Eric
I have been using eperl until recently, but found Apache::ASP provides
useful session features that I like. Also, I am experienced with ASP. I
installed Apache::ASP and it seems to operate quite nicely most of the time.
However, there is some odd caching or some kind of saving going on because
(no leading dot)
--
Eric
anyone know how to resolve the undefine ?
You need to grab the CVS version of mod_perl if you're using perl5.005_63
or anything 5.00503. Grab a snapshot from from perl.apache.org/from-cvs
--
Eric
as of this writing.
--
Eric
', perhaps mis-spelled or defined by a
module not included in the server configuration
--
Eric
Mark,
modperl job offers have always been welcome on the modperl list.
Please search the archives and you'll find this fact.
Cheers,
--
Eric
hi,
i'm not a recruiter, im hiring directly for the company i work for, which, by
the way, has put a lot of time and support into helping
The troll vanisheth!
- Transcript of session follows -
... while talking to mc5.law5.hotmail.com.:
RCPT To:[EMAIL PROTECTED]
550 Requested action not taken:user account inactive
550 [EMAIL PROTECTED]... User unknown
that in any case.
No you wouldn't, 5.00503 is the latest stable release. More recent versions
are not supported by the current modperl version (1.21).
--
Eric
) with Perl configuration modules, so I don't
understand where to start tracking.
mod_perl developers' guide didn't help, as perldoc mod_perl :-(
Do you have a specific example of your config, and what doesn't work,
that you could post maybe? It's hard to help without specifics.
--
Eric Cholet
lue passed as
if it was transmitted to Apache as an HTTP authentification?
Yes: $r-connection-user($user);
--
Nicolas MONNET, Technical Director, IT-Xchange
--
Eric Cholet
Doug has made the following modification to modperl (in the CVS tree):
$r-no_cache(1) will now set the r-headers_out "Pragma" and
"Cache-control" to "no-cache"
This should work even with buggy browsers.
--
Eric
I notice that the Guide omits the m
n-{Stuff}{$i}\n" );
}
%
/pre/body/html
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
I think the script can't open STDOUT in a child process under
CGI, a simpler statment: system("ls") didn't work too, until
I chanaged it to: print `ls`;
See http://perl.apache.org/guide/porting.html#Output_from_system_calls
--
Eric L. Brine | Chicken: The egg's way of making
);
}
[...]
Is this [...] A bug?
no. This problem is not related to PerlRun or the flushing of the name
space; the problem would also occur if one tried to use the module from
two different scipts/modules (in the same child).
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you
;
sub;# ok # same as sub(@_);
sub; # ok # same as sub(@_);
sub(); # ok
sub(); # ok # same as sub();
}
{
use strict;
sub;# not ok # same as sub(@_);
sub; # ok # same as sub(@_);
sub(); # ok
sub(); # ok # same as sub();
}
ELB
--
Eric L
there a
directive that sets environment variables? You might find a solution if
you have a look at (or use) that directive.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes
}
I think you will need to use the select(RBITS,WBITS,EBITS,TIMEOUT)
function (see perlfunc) or its OO equivalent, IO::Select.
ELB
PS - This does not belong on the mod_perl list.
Try somewhere else next time, such as comp.sys.lang.perl.
--
Eric L. Brine | Chicken: The egg's way of maki
of time,
unless the file is already locked. If the file is already locked and you
ignore the lock, it defies the the whole purpose of locking them in the
first place.
Anyway, just looking for ideas.
Have you considered logging to a database?
ELB
--
Eric L. Brine | Chicken: The egg's way of making
requests)?
That's not what I'm seeing, KeepAlives work the way I configure them.
Maybe this is true when accessing a mod_perl server through a front-end proxy,
but not when accessing a mod_perl server directly.
--
Eric Cholet
the innocent, here and
everywhere.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
to have several TransHandlers.
--
Eric Cholet
explain this to me or point me to somewhere where
this is explained. (It is probably something very simple, but
I must be overlooking it.)
Thank you very much,
Kees
--
Eric
tuntaly, I don't know the name of the default
handler.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
single step (perl Makefile.PL EVERYTHING=1 DO_HTTPD=1
make install), I like the fact that I install just the binary httpd wherever
I feel like, I don't want it to go away.
If you're concerned about the two different ways to build, hop on over to
Apache-land, they started it :-)
--
Eric
of the
request? Maybe they add the quotes by accident. Is the requested proxied
from a front-end or is mod_rewrite used? The quotes may be introduced
there by accident.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ
east 50% of the time (when downloading image archives). In
other words, it's possible for a user can configure Teleport Pro to
hammer a server, but it behaves respectfully using the default settings.
Their site: http://www.tenmax.com/
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eg
'use HTML::Embperl' ( startup.pl) both don't work!
Is this a special "Win32-behaviour"?
I might be wrong, but I thought Embperl should never be loaded in startup.pl,
even in UNIX.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you
is installed in
the main server config, it will be used by vhosts, unless they define
their own.
--
Eric
.
--
Eric
anyone give me a hand on how to debug this?
Maybe it's an environment setup problem, anything in $r-header_in("Referer")
under mod_perl?
--
Eric
Stas is right, I've been mass-deleting the "logo" and "demand" threads for
several days, resulting in a quite manageable list. The nice thing is, you
can always search the archive if you accidentally delete something (and you
*should* search the archive before posting, anyway, as well as check
hi,
If I put this on Location: bar on the Netscape browser, I get the result
of the search as expected (try it).
http://www.volunteermatch.com/results/results.jtmpl?zip=5radius=60when=30ongoing=bcategory=Everythingsubmit=Search
I don't, I get the search form. Using IE5 on Win98.
I and completely disregard CGI compatibility.
When I write a new application, I often write content handlers as
registry scripts, because of the ease of use (no need to restart the
server when changed), then it's easy to wrap a "sub handler" around the
script to turn into a "real" handler.
--
Eric
in the guide
which recreates the content.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
de virtual hosts.
+ [Graham Leggett [EMAIL PROTECTED]]
+
Before that change mod_proxy didn't merge per-directory configuration at request
time. Could you try a CVS snapshot of Apache and see if that fixes your problem?
--
Eric
y
please?
Many thanks,
Check out the Apache doc for module mod_log_config, directive LogFormat.
The format specifier %b or %B is what you're looking for.
--
Eric
ent_remain'}
: $Apache::READ_BLOCK_SIZE;
);
$r-read($block='', $num_bytes);
return undef() unless (defined($block));
$self-{'content_buf' } .= $block;
$self-{'content_remain'} -= $num_bytes;
}
}
ELB
--
Eric L. Brine | Chicken: The
? One could use
POST, or some other method to circumvent your authentication.
Third question :
Is there a way to tell Apache to reparse a handler, when I change the
source.
Not to "/etc/rc.d/init.d/httpd restart" - every time.
Use PerlFreshRestart, or Apache::StatINC.
--
Eric
for performance reasons and to reduce memory and CPU usage. Refer
to the guide.
If you're the only one using the mod_perl server and it crashes (which
probably doesn't happen), then noone else is affected and your hosting
service is happy.
ELB
--
Eric L. Brine | Chicken: The egg's way
-length'));
$line;
}
This snippet is the tied sub which handles line reads from STDIN.
Apparently, his problem had nothing to do with $/ as was suggested. I
guess he should be using $r to access the POSTed data.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL
$line = STDIN;
}
$r-print("$line\n");
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
Haney [EMAIL PROTECTED]
CyberNautix, Inc. 800.7.NAUTIX
UNIX/Internet Computing Solutions Consulting * Development
--
Eric
Randal L. Schwartz wrote:
"if (@foo) {...}" is *idiomatic* Perl for "are there any elements in
@foo, and if so, do this". If you don't understand the idioms, please
choose a more familiar language. :)
Don't you think this is a rather nasty response, smiley notwithstanding? Normally I
enjoy
);
Steffen
--
Eric
s executed, but it's output is not piped to Apache. I
believe perl (or is it mod_perl) needs to be compiled with a certain
option for this to work. I believe the following works, though:
print(`/tmp/test.sh`);
or maybe do you own fork?
ELB
--
Eric L. Brine | Chicken: The egg's way of making
ResourceConfig conf/srm2.conf
/VirtualHost
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
I'm not familiar with EBCDIC, but in Perl \r and \n are platform
dependent, you migh want to try the platform independent \015 (cr)
and \012 (lf).
[EMAIL PROTECTED] wrote:
Dear list readers -
I'm working with the following environment:
BS2000-Posix as O.S.
Perl-5.005_54
Apache-1.3.9
can be a statement. For example,
b = c + d
is an expression since one can say
a = (b = c + d)
but it can also be used as a statement. Similarly,
'string'
and
e++
are expressions and therefore can be used in other expressions and as
standalone statements.
ELB
--
Eric L. Brine | Chicken
s/etc
logic for free.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
gzip stdout.txt
or you could call exec() as follows:
exec('sh -c "java PursuitSpider stdout.txt; gzip stdout.txt"');
Btw, I believe Java has built in support for gzip compression in the
java.util.zip package which is part of the java API.
ELB
--
Eric L. Brine | Chicken: The
dictionnary attacks on a password protected site. In that
case the throttling needs only be applied when authentication has failed and
thus won't affect performance for normal requests.
Thanks for the code,
--
Eric
Nope, I could find nothing to distinguish "evil spider" mode fr
it but it needs a little polishing before I can do that.
Email me privately if you're interested.
--
Eric
Success!
The problem is, the tokencode sent by the user expires the instant its
validity is determined. That the browser caches this and returns it over
and over is not only a nuisance, it can cause the SecurID server to
disable the token.
Problem was, the client kept coughing up an invalid
long since expired. How do I cause the module
to force the basic auth dialogs again?
$r - note_basic_auth_failure;
return AUTH_REQUIRED;
Doesn't seem to work.
On Sun, 31 Oct 1999, Doug MacEachern wrote:
On Mon, 18 Oct 1999, Wyman Eric Miles wrote:
System
Man, that's some ps program you've got here. I should run Linux
one of these days.
PID TTY STAT TIME COMMAND
1 ? S0:05 init [2]
2 ? SW 0:06 (kflushd)
3 ? SW 0:07 (kupdate)
4 ? SW 0:00 (kpiod)
5 ? SW 0:04 (kswapd)
82 ? S0:00
!
--
Eric
larger than 640 pixels wide. I need the
screen real estate for my other applications.
Enjoy the weekend,
Eric
--
-- --- --
Eric Gracyalny UW-Madison COE Webmaster
VOC: 608-265-8669 FAX: 608-263-9259
EMAIL: [EMAIL PROTECTED]
URL: http
a Location container ?
Les Mikesell
[EMAIL PROTECTED]
--
Eric
I explicitely empties it's cache.
Always test the server with telnet or lwp-request, otherwise you're
testing the browser too.
Kees
--
Eric
it looks very slick. At any rate it's
much better than what we have now.
--
Eric
quot;debug", so switching to level "info"
will stop these from appearing.
Again, search the list's archive to confirm this.
ELB
--
Eric L. Brine | Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED] | Do you always hit the nail on the thumb?
ICQ# 4629314 | An optimist thinks thorn bushes have roses.
my $name = $r-connection-user();
to get their SSN. I'll worry about the mapping of login-SSN but I need
to know how to tell the authorize module what their SSN is.
Any help, code snippet or urls would be greatly appreciated.
Thank you,
Joshua
--
Eric
ewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
$RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";
Am I missing something obvious?
I am using Apache/1.3.9 with mod_perl/1.21 in case ut matters.
--
- Terje
[EMAIL PROTECTED]
--
Eric
201 - 300 of 305 matches
Mail list logo