Lihn, Horng-Twu [EMAIL PROTECTED] writes:
I have a library of perl routine that I call in cgi-bin environment
where I usually require. I could not find any way to require it
and use it in Embperl. I can not find any doc describing how this is done.
(I can require it in the Mason handler.pl)
httpd.conf:
PerlSetVar SALDAP_SecretKeyFile .../apache/foobar.com.key
See if it exists and verify that the UID under which the web server is
running has permission to access that file.
Apologize for my ignorance.
Randy
Chris Strom wrote:
Are you running login.pl under Apache::Registry
Are you running login.pl under Apache::Registry? If not, something like
the following should work:
Alias /perl/ /home/httpd/perl/
PerlModule Apache::Registry
Location /perl
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
/Location
Then put your login.pl
Brian [EMAIL PROTECTED] writes:
I have a unique situation in which I need to change the http_referer.
What I've done is written a quick script that looks like this:
[snip]
Now, the problem is this: It works perfectly as long as the client
remains on our server. But, if they go to another
will trillich [EMAIL PROTECTED] writes:
AxKit
HTML::Embperl
The two that I've had the most experience with are AxKit and HTML::Embperl,
and I'd recommend them both. They are both well maintained (both released
updates in this week) and the mailing lists for both are very
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:
OK, I think I have solved this problem, but I would like to run my solution by
you folks, and see if it makes any sense. What we found, on a more thorough
code review, was that a number of the handlers were doing a redirect by calling
Mike Cameron [EMAIL PROTECTED] writes:
Is it possible to have the same PerlAuthzHandler use different require's
on a subdirectory once a user has been authorized for a parent
directory? Here is what i would like to be acle to do:
Location /
SetHandler perl-script
AuthType MyAuth
sterling [EMAIL PROTECTED] writes:
On 16 May 2001, Chris Strom wrote:
Mike Cameron [EMAIL PROTECTED] writes:
Is it possible to have the same PerlAuthzHandler use different require's
on a subdirectory once a user has been authorized for a parent
directory? Here is what i
Nick Tonkin [EMAIL PROTECTED] writes:
Hi all,
I'm working on a tool that should compare two versions of a file (usually,
a web page) and report the _number_ of changes from one to the other. I've
played with Algorithm::Diff as well as standard diff and haven't found a
really sane way to
Anand Raman [EMAIL PROTECTED] writes:
hi guys
I just started off using modperl so excuse me if this has been answered.
Is there a way to capture output from a subrequest.. rather than
allowing the subrequest to directly output the response to the client
browser.
I need to be able to
-Original Message-
From: will trillich [mailto:[EMAIL PROTECTED]]
thanks one and all for the pointers on cookies. i probably grok
738% more than i did, but i have a feeling it's still only 13% of
the pie. or in this case, cookie...
so how's this PerlAccessHandler, for twisted
headmeta http-equiv=Refresh content=2;
http://www.no-way-in-hell-bubba.com/login/;
should be:
meta http-equiv=Refresh content=2;
URL=http://www.no-way-in-hell-bubba.com/login/;
You may have a typo in the code provided. Also, you should probably start
using mod_perl methods rather than perl built-in functions.
In a PerlAccessHandler I have code similar to the following:
sub handler
{
my $r = shift;
my ($cgi, $cookie);
use CGI;
$cgi = new CGI;
Anyway, what you should do is create a constructor:
sub new {
[snip]
You mean like this code segment that I included in my original post
just below the handler code :)
sub init {
[snip]
Ah yes, but you called your's "init", which is quite misleading to those of
us who tend not to
Subject: Help: Can't use string ("Exchange::Account::My") as
a HASH ref
while "strict refs" in use trying to use instance variables in my
handler
[snip]
sub handler ($$) {
my ($self, $q) = @_;
my $r= Apache::Request-new($q);
$self-child_init unless
#Location Handlers
Location
PerlAccessHandler Apache::GateKeeper
/Location
The Location directive needs to specify a URL to which it applies:
Location /
Perl*Handlers can go pretty much anywhere, as long as the server
administrator hasn't diabled .htaccess files.
Hi I wonder how would I be able to add a perl handler in
front of all the
default handlers that are being used by apache.
Try the PerlInitHandler directive.
Location /members
PerlAuthHandler Moo::Auth
PerlAuthzHandler Moo::MemberAuth
PerlAuthzHandler Moo::MembershipType
PerlSetvar
You might try:
$headers-scan(sub {
$r-headers_out-add(@_);
print STDERR join("=", @_), "\n"
});
The STDERR will output the seen headers to your logs.
the problem is that there are many Set-Cookie instructions
in $headers but mod_perl seems to use a tied hash to
Removes all PerlAuthenHandlers:
LocationMatch /websites/foo.net/htdocs/passwd_forgoten/
PerlInitHandler "sub
{$_[0]-set_handlers(PerlAuthenHandler=undef);}"
/LocationMatch
Creates a single PerlAuthenHandler whose sole function is to return OK.
I think this should be: ...
You will need to use StatINC. mod_perl does not re-read modules that it has
already loaded.
-Original Message-
From: Kevin Beckford [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 17, 2000 11:06 PM
To: [EMAIL PROTECTED]
Subject: Use of .htaccess files
Hello all,
I'm a
Emacs,
of course! Use it in conjunction with MMM Mode for Emacs (http://mmm-mode.sourceforge.net/).
Get the latest version of Emacs for windows from http://www.gnu.org/software/emacs/windows/ntemacs.html
or http://www.xemacs.org (my
preference is for the former).
-Original
Creating a nearly empty warnings.pm works, but I had to define the package
namespace and create the unimport method as an empty subroutine like:
##
package warnings;
sub unimport {}
1;
##
If this is done, then you need to change the following lines in
I'm having trouble using PerlRun with the StatInc module. The symptom is
several error log file entries of the form:
[Wed Nov 8 11:12:20 2000] PerlInitHandler subroutine
`Apache::StatINC::handler' : Apache::StatINC: Can't locate
The offending item in %INC appears to be the 'warnings.pm' entry
NC_Debug 1
PerlWarn On
PerlTaintCheck On
It's not the prettiest thing, but it does what's needed.
-Original Message-
From: G.W. Haywood [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 3:00 PM
To: Chris Strom
Cc: [EMAIL PROTECTED]
Subject: Re: PerlRun StatInc perl5_
24 matches
Mail list logo