Here's a simple handler that will set the AuthType and AuthName
dynamically and handle the authentication for you. This handler will
prompt you for a password when you try to acess /manual with the
AuthName, "The Manual" and prompt with the AuthName "The Icons" when you
try to access /icons.
[Sorry for being so verbose, hope somebody still have the time and
patience to read it all].
I have a setup where a PerlTransHandler registers a PerlContentHandler
based simply on whether $r-uri ends with '.html' or not. The
TransHandler does no verifying of the existence of the file, that
John Reid ([EMAIL PROTECTED]) said something to this effect:
Hi Guys
*snip*
server start. I experimented with IPC::Shareable, but when I attempted
to do anything with it in my startup.pl file it segfaulted the server
and httpd would not start.
Hi John,
If IPC::Sharable is failing for you,
Bjørn Ola Smievoll ([EMAIL PROTECTED]) said something to this effect:
[Sorry for being so verbose, hope somebody still have the time and
patience to read it all].
I have a setup where a PerlTransHandler registers a PerlContentHandler
based simply on whether $r-uri ends with '.html' or not.
On Wed, 27 Sep 2000, Todd Chapman wrote:
Problems with your suggestion:
1. The realm will not be known until I get path_info so
Location/Location directives will not work.
you can use $r-auth_name($realm) to set it at request time.
2. How can I get Perl to do the password lookup in
Is there anyway to fool perl into letting you do a:
use Foo ($bar, 'baz', 'quux');
??
Foo is only getting 'baz' and 'quux', the value of $bar is lost in the
ether.
I have tried many ways of trying to sneak it past but none seems to work...
Thanks
Hello,
I have started a free auction system project at http://www.apartia.org
which is closely tied to mod_perl/Mason and PostgreSQL.
The Apartia project already supports all main types of auctions:
classic, dutch, decreasing price, fixed, bids.
Latest features added are:
- seller, bidder,
On Thu, 28 Sep 2000, Jerrad Pierce wrote:
Is there anyway to fool perl into letting you do a:
use Foo ($bar, 'baz', 'quux');
??
Foo is only getting 'baz' and 'quux', the value of $bar is lost in the
ether.
I have tried many ways of trying to sneak it past but none seems to work...
use is
On Wed, 27 Sep 2000, Carlos Ramirez wrote:
my $authheader = 'Basic realm="'.$realm.'"';
$r-header_out("WWW-Authenticate" ,$authheader);
there's a cleaner way for that:
$r-auth_name($realm);
$r-note_basic_auth_failure;
$r-status(AUTH_REQUIRED);
no need for that.
From: Jerrad Pierce [EMAIL PROTECTED]
Is there anyway to fool perl into letting you do a:
use Foo ($bar, 'baz', 'quux');
'use' lines are executed very early on during script loading:
use Foo x y z
is roughly equivalent to
BEGIN { require Foo; import Foo x y z }
Thanks...
as It turns out I had to use both a BEGIN{} to set the variables and an
eval{} around the use (don't ask, it's some rather ugly stuff...).
autouse wasn't quite whta I needed (the module I'm using contains no
functions, just a big hash)
-Original Message-
From: David Mitchell
On Mon, 26 Jun 2000, Jim Winstead wrote:
We were seeing some servers spin out of control (allocating memory
slowly) in Apace::Constants::AUTOLOAD (which apparently has been
reported in the mailing list before).
The attached patch fixes the problems for us. Could someone who
understands
Thanks for the help Doug. This is what I have now but all I get is a
segementation fault in the log.
Any ideas?
-Todd
package Apache::SetRealm;
## Usage: PerlHeaderParserHandler Apache::SetRealm
use strict;
use Apache::Constants qw(:common);
sub handler {
my $r = shift;
# find the
Sorry I don't have much in the way of details, but we had this problem several months
ago (probably in a previous version of mod_perl), but it silently went away.
(I'm reminded of it because recently I was reviewing the handler() of our recently
open-sourced embedded parser, Apache::XPP, and
It has promise but needs someone to polish it up.
(I didn't write it and have barely looked at the code.)
Tim.
On Tue, Sep 19, 2000 at 12:50:57PM -0700, Tom Lancaster wrote:
I know, seems promising, doesn't it, especially after the overview in
the DBI book. On the other hand, you can do most
Hi,
Why does this script give no output under mod_perl, but works fine from the command
line:
#!/usr/bin/perl -w
use CGI;
print CGI-header();
open (AAA, "-");
print AAA "Test string";
close AAA;
The directory where the script lives is configured as:
AllowOverride None
Order
On Wed, 13 Sep 2000, brian d foy wrote:
let's suppose that i want to change the HTTP status to be something other
than i'm going to return from the handler(). is there a way to get the
logging phase to log the status that the user-agent got rather than the
return value of the handler()?
I'm using Apache and mod_perl to develop a dynamic web site. When I
execute a specific script for the first time (after restarting
Apache, for instance), it always works. If I reload the page, I
(sometimes) get the following message in my apache error log:
[error] Undefined subroutine
On Fri, 22 Sep 2000, Martin Wood wrote:
We have a collection of CGIs in a single directory handled by Apache::Registry,
however if we enter the name of a resource under that location that doesn't exist,
say www.noddy.com/registry_dir/dont_exist.cgi this is not recorded in the error_log,
just
$r->auth_name($realm), $r->auth_type($basic) did not work for me, which
is why I used the $r->header_out method. Also, after I set the outgoing
header and returned AUTH_REQUIRED, I got prompted but the $realm did not
show. Instead it displayed 'unknown' as the realm name. But when I set
the
-Original Message-
From: Paulo Narciso Filho [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 28, 2000 12:23 PM
To: [EMAIL PROTECTED]
Subject: Undefined subroutine error (only now and then)
I'm using Apache and mod_perl to develop a dynamic web site. When I
execute a
On Wed, 16 Aug 2000, Matt Sergeant wrote:
On Tue, 15 Aug 2000, Mark D. Anderson wrote:
The problem was the symbol conflict between XML::Parser and apache when
built with expat. This has been apparently known for over a year, but has
still not been fixed last i checked, presumably
The subroutine is there (it executes in the first time). If I keep
trying to reload the page, sometimes it works, sometimes it doesn't.
The same error happens to other scripts, with different subroutines
being called, but never happens if I run them from the command line
(with the
On Wed, 27 Sep 2000, Magnus Erixzon wrote:
I am having some problems with Apache::Include.
When I include more than one file with it, the httpd seg faults.
The script can be as simple as this:
#!/usr/bin/perl
use Apache::Include ();
print "Content-type: text/html\n\n";
On Thu, 28 Sep 2000, Todd Chapman wrote:
Thanks for the help Doug. This is what I have now but all I get is a
segementation fault in the log.
$r-note_basic_auth_failure;
if AuthType is not set, this will core dump. i just expanded the change
that defaults AuthType to Basic for
On Thu, 28 Sep 2000, John Reid wrote:
The problem I am facing is with our database definition files. These are
custom files which are required at run time. The file consists of a long
series of subroutine calls with arguments that refer to the definitions
of fields, tables, etc. They are used
On Thu, 14 Sep 2000, brian d foy wrote:
okay - i got that to work. i was getting confused because notes from the
handler() were showing up in the current request's notes for the
custom_response() handler *and* (as i've discovered) in the previous
notes. should that happen?
it shouldn't,
On Thu, 28 Sep 2000, Carlos Ramirez wrote:
$r-auth_name($realm), $r-auth_type($basic) did not work for me, which
is why I used the $r-header_out method. Also, after I set the outgoing
header and returned AUTH_REQUIRED, I got prompted but the $realm did not
show. Instead it displayed
Thanks Doug but I (and my customer) don't want to live on the CVS bleeding
edge right now. Can you suggest something else?
Original problem:
I need to set the realm for virtual documents based on path_info and use
Basic authentication. Otherwise I may have to move to some cooie based
On Fri, 15 Sep 2000, [iso-8859-1] François Chenais wrote:
Hello
Using perl 5.6.0
apache_1.3.9
I 'm trying to build DSO mod_perl.1.24
= perl Makefile.PL USE_DSO=1 EVERYTHING=1 PERL_DEBUG=1
All is ok but "make test" says :
On Wed, 20 Sep 2000 [EMAIL PROTECTED] wrote:
PerlFreshRestartOn
try turning that Off. does DBI/DBD::mysql work for you without
Tie::DBI?
On Thu, 21 Sep 2000, Chris Downes-Ward wrote:
Dear all,
We have a server which has a virtual server on it, this virtual server has a
number of locations, one of which has a
perl access handler defined, this server is a development server and is not
heavily loaded. Every now and then (I
On Tue, 26 Sep 2000, Herrington, Jack wrote:
I'm using Mason in process with mod_perl. I have also tried using mod_perl
handlers direct with Apache::Request with no success.
what do you see if you configure Apache::Status and open the url:
/perl-status?Apache::Request
?
also, any
On Tue, 26 Sep 2000, Ricardo Stella wrote:
Solaris 2.8
Apache 1.3.12
GCC 2.95.2
Perl 5.6.0
Enterprise 250 (64bitish)
Modperl 1.24
I can't get modperl compiled as a DSO neither via the 'flexible-method'
nor the APXS method.
The first method, seg faults.
The second method won't
On Tue, 26 Sep 2000, Dhananjay Naniwadekar wrote:
I am trying to install perl-5.6.0 on hpux.
It is choosing cc as the c compiler. I don't know why. If I install an
earlier version
of perl, it chooses gcc.
I have an env-variable named CC which is set to gcc .
try Configure -Dcc=gcc
On Tue, 26 Sep 2000, Keith G. Murphy wrote:
I'm running Apache 1.3.9 with mod_perl embedded, on Debian GNU/Linux.
I have the following lines towards the end of my httpd.conf:
PerlSetEnv PERL5LIB /usr/local/MyPerl/lib
PerlRequire startup.pl
Include perllocs.conf
However, upon system
On Wed, 27 Sep 2000, Keith G. Murphy wrote:
Upon further investigation, what I am seeing is that PERL5LIB gets
passed into %ENV just fine. It's just not being used to locate modules;
it is not in @INC. Could the part of Perl that pushes the PERL5LIB
setting to @INC have already executed
On Thu, 28 Sep 2000, Michael J Schout wrote:
On Wed, 16 Aug 2000, Matt Sergeant wrote:
On Tue, 15 Aug 2000, Mark D. Anderson wrote:
The problem was the symbol conflict between XML::Parser and apache when
built with expat. This has been apparently known for over a year, but has
On Tue, 29 Aug 2000, Lyle D. Brooks wrote:
This is my first time posting to this list, so forgive me
if this question has been asked before (I did not see it in
the archives or in the mod_perl guide).
Apache::Status seems like a nice module, but I don't understand
what the Memory usage
On Thu, 28 Sep 2000, Todd Chapman wrote:
Thanks Doug but I (and my customer) don't want to live on the CVS bleeding
edge right now. Can you suggest something else?
yeah, add this to httpd.conf:
AuthType Basic
On Tue, 26 Sep 2000, Shane Adams wrote:
Well I did a little more investigation - it seems that we are dieing in
Expat.pm line 451. The offending Function is:
...
is this something you can reproduce at will? if you can give me a tiny
test case that i can drop and i run, i'll take a look.
On 28 Sep 2000, Bjørn Ola Smievoll wrote:
[Sorry for being so verbose, hope somebody still have the time and
patience to read it all].
I have a setup where a PerlTransHandler registers a PerlContentHandler
based simply on whether $r-uri ends with '.html' or not. The
TransHandler does no
At 01:25 PM 04/20/00 -0700, Doug MacEachern wrote:
On Wed, 12 Apr 2000 [EMAIL PROTECTED] wrote:
Hi All,
...
[Mon Apr 10 22:27:01 2000] [error] at
/usr/lib/perl5/site_perl/5.005/i386-linux/Apache/SIG.pm line 31.
Line 31 is Apache::exit($s);
Apache::exit() calls die() underneath to halt
To Whom It May Concern,
I have a question with regards using LD_PRELOAD (or something more appropriate) to
load libiconv_plug.so and override any other iconv implementation. (Would be grateful
is someone can help).
I'm running Apache with mod_perl 1.24 on Solaris 2.6. I'm using
On Fri, 25 Aug 2000, Ken Williams wrote:
ken, you're right, has-a relationship is the right way to go. your patch
is perfect, applied, thanks!! i guess this will break some things, like
Apache::RegistryLexInfo, but changes should be minimal and
RegistryNG/PerlRun is still considered
With Apache 1.3, mod_perl 1.21
How can I gererate multiple pages returned from one request? I don't see
how to create the multi-part return, when the data comes from multiple
static files:
eg.
request : www.mysite.com/userdir/index.html When this request comes in and
based on some settings
On Thu, 24 Aug 2000, Ken Williams wrote:
Hi all,
It looks like setting Apache-request($r) doesn't work as documented. I
can't get it to install a subclass of Apache as the request object.
Here's some code in a handler:
_
warn
how about using mod_so's LoadFile directive?
On Thu, 28 Sep 2000, Rajit Singh wrote:
To Whom It May Concern,
I have a question with regards using LD_PRELOAD (or something more appropriate) to
load libiconv_plug.so and override any other iconv implementation. (Would be
grateful is someone
Hello
I am trying to develop for the first time a perl module. It should work on a
server with mod_perl. The objects are not using mod_perl ($r) and are just
solving some of my work in a nicer way. Since I'm new in OOP on perl (I only
know C++) I would hear from some experts that the
Duh! Thanks.
Now, is there any way to determine the realm the browser thinks it's
authentication to? Is the realm stored in the Authorization header or any
other headers?
-Todd
On Thu, 28 Sep 2000, Doug MacEachern wrote:
On Thu, 28 Sep 2000, Todd Chapman wrote:
Thanks Doug but I (and
On Thu, 28 Sep 2000, Bill Moseley wrote:
Is there a way to make that message go away?
maybe if you can give me a small example that reproduces the message. it
works fine for me:
shift-send_http_header;
print "hi\n";
exit;
print "bye\n";
nothing in the error_log.
actually, the patch
On Thu, 28 Sep 2000, Vsevolod Ilyushchenko wrote:
Hi,
Why does this script give no output under mod_perl, but works fine from the command
line:
#!/usr/bin/perl -w
use CGI;
print CGI-header();
open (AAA, "-");
because the C level stdout is not hooked up to the client. you can
On Wed, 27 Sep 2000, B. Burke wrote:
When I set PerlSendHeader to Off in my perl.conf it doesn't send headers,
which
is good. The bad part is that it seems to break socket persistence for some
reason.
When I have PerlSendHeader set to On, I can open a socket with my test client,
and
try DIR = []
On Mon, 17 Jul 2000, Ken Williams wrote:
Hi all,
Here's a resend of the Apache::test patch that I sent yesterday, this time
sent as type text/plain from a Unix mailer. Rick Myers noted that the
version I sent before was encoded with Macintosh BinHex, which is probably
not the most
Why does this script give no output under mod_perl, but works fine from the
command line:
#!/usr/bin/perl -w
use CGI;
print CGI-header();
open (AAA, "-");
because the C level stdout is not hooked up to the client. you can do
this as an alternative:
if ($ENV{MOD_PERL}) {
No... that opens a handle to ehir INPUT
output is
open(OUT, "magic_open |");
Or you could just slurp in a string with
$_ = `normal_open`;
-Original Message-
From: Vsevolod Ilyushchenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 28, 2000 5:17 PM
To: Doug MacEachern
Cc: [EMAIL
what is your test client?
I wrote a command line client that just sends/receives basic messages for testing.
I have been opening a socket and sending this:
GET /perl/myscript HTTP/1.1
Connection: Keep-Alive
Host: myhost.mydomain.com\n\n
It worked as expected - I was able to keep the socket
Todd Chapman [EMAIL PROTECTED] writes:
Duh! Thanks.
Now, is there any way to determine the realm the browser thinks it's
authentication to? Is the realm stored in the Authorization header or any
other headers?
I wouldn't try to use realms in any serious way- various browsers
do various
I am using mod_proxy_add_forward to get the correct IP address from the proxy
server, as described in the guide. On my back-end mod_perl server, I want to
limit access only to requests coming from the proxy server. I can't use simple
IP-based access control via mod_access because
Slightly off topic but I think interesting. If this have been covered
sometime before about 4 months ago please point me there.
I've taken on the support of a website that was designed as a student
project. To make them feel warm and fuzzy the site was done using Windows
NT, MS IIS, SQL Server
We are looking for experienced mod_perl programmers for a large web
application project. Startup environment, lots of autonomy, good $$.
Other desired skills: Perl/XS, C, C++, database experience.
The job is on-site, and we're in Dearborn, Michigan.
If anyone's interested, please contact me
"Lang, Cliff" [EMAIL PROTECTED] writes:
[...]
request : www.mysite.com/userdir/index.html When this request comes in and
based on some settings in the authen-db, we need to generate not only the
data from index.html, but also send the file www.mysite.com/core/info.html
which would be
Recently, one of my co-employees has been messing around with Zope
(http://www.zope.org) and I was wondering if there's a package that
provides similar functionality using mod_perl and Apache rather
than its own web server. Specically, what I want to do is define
template web objects that can be
At 01:43 PM 09/28/00 -0700, Doug MacEachern wrote:
On Thu, 28 Sep 2000, Bill Moseley wrote:
Is there a way to make that message go away?
maybe if you can give me a small example that reproduces the message. it
works fine for me:
package My::Hello;
use strict;
use Apache::Constants
On Thu, 28 Sep 2000, Philip Molter wrote:
Recently, one of my co-employees has been messing around with Zope
(http://www.zope.org) and I was wondering if there's a package that
provides similar functionality using mod_perl and Apache rather than
its own web server. Specically, what I want to
Okay...I have not used that before but I will definitely take a look at it.
Thanks...Allen..
Reply Separator
Subject:RE: Remote Hosting
Author: [EMAIL PROTECTED]
Date: 9/26/00 5:06 PM
Take a look at Apache::ProxyStuff. It may do exactly what
On Thu, 28 Sep 2000, Doug MacEachern wrote:
On Tue, 26 Sep 2000, Keith G. Murphy wrote:
I'm running Apache 1.3.9 with mod_perl embedded, on Debian GNU/Linux.
I have the following lines towards the end of my httpd.conf:
PerlSetEnv PERL5LIB /usr/local/MyPerl/lib
PerlRequire
I'm writing a perl trans handler to invoke mod_proxy for non-proxy
requests.
Stronghold 3 on Solaris 2.6, server announces:
Stronghold/3.0 Apache/1.3.12 C2NetEU/3011 (Unix) PHP/3.0.16
mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.22
I'm essentially using the code from page 371 of the Eagle book
Hi
( 00.09.28 17:29 -0500 ) Philip Molter:
Recently, one of my co-employees has been messing around with Zope
(http://www.zope.org) and I was wondering if there's a package that
provides similar functionality using mod_perl and Apache rather
than its own web server.
That would be mason
Anybody knows why I'm getting this messages...???
5744 Pinging 'prodcrank.excite.com~crank~crank~RaiseError=1'
5744 Apache::DBI already connected to
'prodcrank.excite.com~crank~crank~RaiseErr
or=1'
5744 Pinging 'prodcrank.excite.com~crank~crank~RaiseError=1'
5744 Apache::DBI already connected to
dougm 00/09/28 09:19:59
Modified:.Changes
src/modules/perl Apache.xs
Apache Apache.pm
Log:
fix bug where Apache::send_http_header was resetting r-status = 200
Revision ChangesPath
1.533 +3 -0 modperl/Changes
Index:
dougm 00/09/28 09:35:54
Modified:.Changes
lib/Apache PerlRun.pm Registry.pm
Log:
Apache::{Registry,PerlRun} will now log an error if $filename is NOT_FOUND
Revision ChangesPath
1.534 +3 -0 modperl/Changes
Index: Changes
73 matches
Mail list logo