thanks :)
- Original Message
From: Heiko Jansen <[EMAIL PROTECTED]>
To: Martin Moss <[EMAIL PROTECTED]>
Cc: modperl
Sent: Thursday, 31 January, 2008 12:28:14 PM
Subject: Re: proxy question
Am Donnerstag, den 31.01.2008, 11:31 +0000 schrieb Martin Moss:
> does mod_pro
Hi all,
does mod_proxy provide more than round robin load balancing functionlity? I'd
been told it could, but I can't find anything in the docs..
Martin
__
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
h seems this worked today.. Server restart musta
failed when it didn't seem to work..
if ($string =~ /($pattern_match)/i)
--- Martin Moss <[EMAIL PROTECTED]> wrote:
>
> I'm looking for a regex which will help me do this..
>
> $string = 'google.com/?q=tes
I'm looking for a regex which will help me do this..
$string = 'google.com/?q=test';
$pattern_match = 'google|yahoo|msn';
What I would like to do is test if $string contains
one of the patterns in the pattern match and then
carry out a function based upon which pattern is
matched...
e.g.
if (
I seem to have something weird going on. a Module I've
written seems to be being included twice at server
startup, but the second time its included the
Apache::ServerStarting flag is set to 0... and is
therefore causing all sorts of grief... (e.g. $dbh
being forked)..
Ive never noticed before that
quot;OK! results are:
>
".Dumper($soapresult->result,$soapresult->paramsout);
> }
>
> sub
> SOAP::Transport::HTTP::Client::get_basic_credentials
> {
> return ''=>'password';
> }
>
>
> Martin Moss wrote:
> > All,
>
All,
I have a Php script which I wish to convert to perl
require_once('SOAP/Client.php');
$wsdl_url =
'https://myserver.myhost.com/services/EndUser?wsdl';
$WSDL = new Soap_WSDL($wsdl_url);
$soap = $WSDL->getProxy();
$soap->setCredentials('','password');
$username = "wombat104";
he support, but the
fact that they have a whole integrated developer
studio and deployment mechanism... And many other
whistles and Bells...
Regards
Marty
--- Robert Landrum <[EMAIL PROTECTED]> wrote:
> Martin Moss wrote:
> > I just had a demo of the Zend Platform and
> framewo
I just had a demo of the Zend Platform and framework
for php.
It's got some really nice stuff, but ultimately the
reason we may decide to ditch perl and move to php
(h I know booo) will be down to support. OR
lackthereof for Perl...
So my question is, given I'm not a php fan, Is there
an equiv
Cheers Perrin :-)
--- Perrin Harkins <[EMAIL PROTECTED]> wrote:
> On 3/1/07, Martin Moss <[EMAIL PROTECTED]>
> wrote:
> > It's been a while since I've posted, but I have a
> new
> > project which has a SOAP interface. I have limited
> > experie
As I understand it...
if you use this ->autologin the first argument to
your autologin subroutine will be a string
'MyRoot::Testing'
if you use ::autologin It won't be...
Perhaps this might have something to do with it...
I setup my subroutines like this:-
http.conf
PerlModule MyRoot
All,
It's been a while since I've posted, but I have a new
project which has a SOAP interface. I have limited
experience with SOAP, so I was wondering if there is a
consensus of opinion as to what the best modules to
use are?
Effectively I'll be simply posting strings of SOAP XML
to a webpage...
All,
Does anybody know of a progress bar type class for
file uploads? (apache 1)
Or, if there isn't one, available, what are the basic
steps needed to implement one?
regards
Marty
___
To help you stay safe and secure o
/~lds/Crypt-CBC-2.12/
>
> --Ian
>
>
> On 4/10/06, Martin Moss
> <[EMAIL PROTECTED]> wrote:
> > All,
> >
> > I had some code which ran the old version of
> > Crypt::CBC (2.12).
> >
> > Using these headers to create the object:-
> >
>
All,
I had some code which ran the old version of
Crypt::CBC (2.12).
Using these headers to create the object:-
my $cipher = new
Crypt::CBC($ENCRYPTION_KEY,'Blowfish');
I've now built a new machine. Copied the database
values (encrpypted using the above) onto the new
machine DB using mysqldump
All,
We are seeking a perl developer to join a small
development team. The ideal candidate will have 3+
years experience developing, supporting and debugging
internet/intranet projects, using perl within an
Apache, linux/solaris environment.
Candidates must also have 2+ years experience using
Ora
Not sure why it's doing it, if you've got a default
clean install,
But to control it's debug level you can put this in
your startup.pl
$Apache::DBI::DEBUG=0;
Regards
Marty
--- Paul Harrison <[EMAIL PROTECTED]> wrote:
>
>
> I installed Apache::DBI - 0.98 on FreeBSD 5.4 with
> mod_perl 1.
ge amount of content...
And intermittently on other page requests (GET & POST)
the subroutine fails the can_read but the client is
Still there
Any ideas?
We use a reverse proxy in front of our mod_perl
server...
Marty
--- Martin Moss <[EMAIL PROTECTED]> wrote:
> I'm se
I'm seeing this error in the logfiles...
configuration error: couldn't check user. No user
file?:
Any ideas what might cause it... it is appearing on
different webpages... seems to be during large POST's.
We've just changed from Basic to Cookie based Auth...
Marty
_
using the
> authentication pages/handler to redirect - make
> yourself an Access phase
> (eg. "if no valid cookie, redirect to HTTPS login
> page with appropriate
> parameters").
>
> John
>
>
> Perrin Harkins wrote:
>
> >On Thu, 2005-11-10 at
So an Authen Handler can return a REDIRECT?
I use a 403 custom repsonse which is a self submitting
page (with non javascript handling)... By doing so it
prevent's any of the authentication pages appearing in
IE's back button on the browser...
Marty
--- Perrin Harkins <[EMAIL PROTECTED]> wrot
All,
During the Authentication phase, Any custom responses
that need to be sent back to a user, MUST be sent with
FORBIDDEN using custom_repsonse?
Under Authentication 200 (OK) simply lets Apache Move
on the to the next phase (authz, content etc..)...
I have an authen handler which uses cookie
I had a quick look at this and found both my requests
to /logout/ and /logout2/ typed into the browser
manually, continue to result in the same issue..
Here's the rewrite rules I have on my https proxy that
each request comes through..
RewriteRule ^/logout/(.*)$
http://${farm:map_pf}/logout/$1 [P
d the scenes,
and I can't work it out...
Is it possible Embperl does something with the Apache
Request in an earlier Phase of the request?
--- Michael Peters <[EMAIL PROTECTED]> wrote:
>
>
> Martin Moss wrote:
> > I'm a little confused. And was wondering
nd the details of
why..
Marty
--- Frank Wiles <[EMAIL PROTECTED]> wrote:
> On Tue, 1 Nov 2005 14:54:31 + (GMT)
> Martin Moss <[EMAIL PROTECTED]> wrote:
>
> > Hey Frank..
> >
> > I agree, thats why I setup the logout2 control
> test.
> > What I don
rank Wiles <[EMAIL PROTECTED]> wrote:
> On Tue, 1 Nov 2005 14:31:33 + (GMT)
> Martin Moss <[EMAIL PROTECTED]> wrote:
>
> > I'm a little confused. And was wondering if I
> could
> > get a sanity check..
> >
> > I have a mod perl method ha
I'm a little confused. And was wondering if I could
get a sanity check..
I have a mod perl method handler and at start it runs
this code
my $is_initial_req = $r->is_initial_req;
my $is_main = $r->is_main;
my $main = $r->main;
my $proxyreq = $r->proxyreq;
print STDERR
Dumper('is_i
erl installed... Can this have anything to
do with it?
Marty
--- Geoffrey Young <[EMAIL PROTECTED]> wrote:
> Martin Moss wrote:
> > All,
> >
> > I'm looking to ensure that an Authenticated user's
> > username is logged in our logfiles, along with a
All,
I'm looking to ensure that an Authenticated user's
username is logged in our logfiles, along with a
cookie string.. I've had a quick look through google
and I'm currently finding that I should use %u for
username, but this is appearing blank... What do I
need to set in my Custome Authenticat
irm
Apache::DBI debug level2 output wasnt' appearing in
the logs.. so it's definitely disabled... Fine tooth
comb time:-(
Cheers for all the help,
Marty
--- Perrin Harkins <[EMAIL PROTECTED]> wrote:
> On Thu, 2005-09-29 at 17:08 +0100, Martin Moss
> wrote:
> > So I
So I presume that having done all this, and my logfile
remains blank, then it is not working? :-)
--- Michael Peters <[EMAIL PROTECTED]> wrote:
>
>
> Martin Moss wrote:
> > All,
> >
> > I'm trying to confirm whether Apache::DBI is
> running
> >
All,
I'm trying to confirm whether Apache::DBI is running
on a server.. I can tell if it's loaded, using
perl-status, but I can't tell if it's running
correctly - e.g. intercepting calls to
DBI->connect/disconnect...
Can anybody give me a few pointers?
Marty
__
27;
];
$VAR3 = [
'III::Apache::User::Notification'
];
==
==
15253 Apache::AuthenDBI request type = main
In Embperl::handler
So as you can see, the set_handlers seems to work...
But after the Authen s
Have an awful suspicion the book I used suggested
doing it the other way around? Would that make a
difference?
$r->handler('perl-script');
$r->set_handlers(PerlHandler => [ My::Handler ]);
Marty
--- Geoffrey Young <[EMAIL PROTECTED]> wrote:
>
>
> > I originally tried using $r->set_handlers.
All,
I'm trying to make something work in mod perl, and all
the docs seem to be pointing me in ways which just
don't work on our system...
Server version: Apache/1.3.33 (Unix)
SunOS 5.9
perl, v5.8.6
I wish to have a handler which sits after the
Authentication stage, which can choose whether to
d
All,
We're in the middle of centralising our apache (1.3)
config files and I would like to use mod_define to
simplify the process. However I've noticed that
mod_define isn't available for apache2.
Is there an alternative I can use, or is mod_define's
functionality now core to mod_perl2?
Regards
Can you confirm you have the same version of Perl on
both systems?
I've seen these errors on perl 5.8 after upgrading
from perl 5.005
Marty
p.s. I still have them too, so any help with this
issue would be useful to me too...
--- Boysenberry Payne <[EMAIL PROTECTED]>
wrote:
> Here is a samp
All,
We're in the process of introducing mod perl method
handlers and template toolkit into a system which is
also running Embperl. There is some interaction
between the two, and as Embperl (and especially our
code which uses it) uses %ENV to pass around variables
like $ENV{REMOTE_USER_ID} and oth
mod_define!
Thats the one
I can't believe I didn't find a link to in when
searching google for
'dynamic variables httpd.conf'
Ah well
Thanks for that,
regards
Marty
--- "Reed, Jonathan" <[EMAIL PROTECTED]> wrote:
> We set them in Section 2 of the httpd.conf after the
> DocumentRoo
All,
I know I've seen this done before, but I'd like to
define a variable at the top of my httpd.conf file,
and then use it many times throughout the conf file...
e.g.
define Server='fred'
DocumentRoot /usr/local/${server}
I just can't find any info on this... Can anybopdy
point me at the rig
Hi,
what's your MaxClients setting in your apache conf?
It could just be that you aren't running enough apache
child processes to serve the number of connections
being made,
Regards
Marty
--- "Levi E. Stanley" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Been seeing problems with an Authenticate scr
--- André Warnier <[EMAIL PROTECTED]> wrote:
> Jonathan Vanasco wrote:
> >
> > look into memcached -- http://danga.com/memcached/
>
> Thank you for the link, I didn't know that module,
> and I'll keep it in
> mind for some other projects.
> But it is slightly off the mark as far as the issue
>
Is anybody else having problems posting?
I posted a message on Monday, it still hasn't arrived,
now I just get undeliverables
Marty
Send instant messages to your online friends http://uk.messenger.yahoo.com
Hi Ben,
I have a few thoughts on this... In my experience
writing a daemon process is easy (well ish) but then
configuring your system to manage them (have they
died, have they crashed etc..) is more trouble than
its worth.
Is it possible to use some kind of cronjob based
system, which runs a scr
All,
Can I get a sanity check on this:-
I have a form which POSTs to https://server/url
That https servers uses mod_rewrite to forward the
request onto another server internally as
http://server/url
However after the rewrite, the POST data is lost. Can
anybody throw any light on this?
the rewri
I tried ->handler in my configs, made no difference.
I was doing a 'require' in a startup script if that
makes any difference. Haven't seen this issue with
simillar code anywhere else..
Marty
--- Geoffrey Young <[EMAIL PROTECTED]> wrote:
>
> >
> > PerlTransHandler MyApp::MyIn
I've seen this problem and never got to the bottom of
it, on a redhat box with 5.8.3 (I think) and same
apache and mod_perl,
Marty
--- Andrew Green <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I seem to have a bizarre problem with method
> handlers on my setup. I
> have a set of different handler
please forgive the really daft question, but have done
a complete server shutdown and restart?
I've come across bus errors before where a complete
server restart made the problem go away and never come
back...
Marty
--- Brian Dimeler <[EMAIL PROTECTED]> wrote:
> Sorry for cross-posting this,
I was looking into this a while back, and came across
several posts that described using a PerlAccessHandler
to determine if PerlAuthenHandler should be set or
not.
You could then setup PerlSetVar Require_Auth '0' in
any sublocations that didn't need Auth. your
AccessHandler would then do a set-ha
> > Is PerlSetVar the best way to pass values from
> httpd.conf to perl
> > securely?
>
> It's a good way, although there are plenty of
> others. I use a separate
> config file usually.
>
For what it's worth I use both. I keep 'site wide'
configuration vales in a Config file/module (usually
Bac
I didn't get chance to reply, and the others covered
everything, but the point of Apache::Session is that
you don't need to store ANY data other than a
session_id in a hidden field or in a cookie...
All of the rest of the data you need gets stored
locally on the server side. Much more secure.
Ma
I upgraded to the latest version of Embedperl and ran
the same code from my previous post. IT no longer
segfaults but I get the following error...
Embperl::Execute({
req_rec=>$r,
inputfile=>$file,
param =>[$params],
Hi Colin,
just my opinion, but from a 'practicalities' point of
view, as startup.pl gets more complex (your site grows
larger, you wish to do more intricate mod_perly
things), you will find that it is a distinct advantage
to run it from the command line in the debugger. you
wouldn't be able to do
All,
I'm getting segfaults on every page request I make to
a mod_perl handler thats running under
HTML::Embedperl. We're trying to migrate away from
Embperl as fast as possible, but whenever I call
HTML::Embperl::Execute in my code more than 4 or 5
times I get seg faults..
perl 5.6, apache 1.
gt; On 19 Nov 2004, at 12:35, Martin Moss wrote:
>
> > I've had an urgent request for a few paragraphs on
> the
> > justification for the use of perl. In particularly
> > mod_perl.
> >
> > Someone in the powers that be read an outdated
> > description
All,
I've had an urgent request for a few paragraphs on the
justification for the use of perl. In particularly
mod_perl.
Someone in the powers that be read an outdated
description and thinks that using perl is a security
risk - (I know, its not what you use, but how you use
it thats the security
Cheers Fellas, this was the bit I was concerned about.
Apache::AuthCookie, looked a little bloated to me,
however I'm a big fan of only inventying new types of
wheels not old so I'll revisit...
Regards
Marty
--- Michael J Schout <[EMAIL PROTECTED]> wrote:
> On Wed, 10 Nov 2004, Skylos wrote:
All,
I'm about to replace the authentication mechanism that
our web site uses. However I wanted to sanity check my
thought process.
Is it possible to have an Authen handler sitting on
certain areas of a site, and if a user isn't logged in
(i.e. doesn't have an auth session cookie) we present
the
ding our site from normal Basic
authentication, which sends username and password
unencrypted anyway, so compared to that the security
upgrade is still a big increase!
Marty
--- Sam Tregar <[EMAIL PROTECTED]> wrote:
> On Mon, 8 Nov 2004, Martin Moss wrote:
>
> > I
All,
I'm looking into ways of uniquely identifying a
computer. I've been reading around the web looking at
different mechanisms, and so far I've drawn a fuzzy
blank. Currently, I want to use SSL to let a user sign
in and then I return a session cookie, which I then
use to confirm the user is logge
Having Just re-read your reply, (don't ask, waiting
for a machine sync to finish, bored...!) I noticed
that you said you didn't get an apache Object at all.
This is behaviour I've seen myself, and I never got a
decent understanding of why it happens?
So does anybody know under what circumstances
Hi Marina,
Can you post a bit of your http.conf which declares
your AuthHandler's usage?
Are you saying:-
PerlAuthHandler Our::Auth->authen_handler
or
PerlAuthHandler Our::Authen::authenhandler
I ran some code across SuSe and Redhat and noticed
different behviours for using "->".
If you use "-
Heyho,
I spent ages trying to track down a mysql/Apache::DBI
bug, and whilst I'm not sure what's going wrong with
your system, I found it useful to add the PID of the
individual mysql process (not sure if you can do this
with postgresql) to the $dbh and then implement a
error handler which logs th
Not for Mp2 but did you come across this link?
http://www.brtnet.org/linux/rtinstall.htm
Marty
--- Jon Forrest <[EMAIL PROTECTED]> wrote:
> Maybe others know something that I don't know,
> but I was unable to build mod_perl2 with apache 2
> on either Mandrake 10.0 or Fedora Core 2. I sent
> se
eek, sorry, you guessed right at apache 1.x (1.3.31)
Marty
--- William McKee <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 13, 2004 at 12:46:19PM +0100, Martin
> Moss wrote:
> > Hmmm, I'm a little concerned that using DSO does
> have
> > a performance hit for no
liam McKee <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 12, 2004 at 05:06:18PM +0100, Martin
> Moss wrote:
> > Most information I find on the web to do this uses
> > DSO. Performance is absolutely critical for this
> > machine, it's going to be handling millions of
All,
I have a brand new redhat 9 box. I have plenty of
diskspace and I need to install apache mode perl mod
php and mod ssl.
Most information I find on the web to do this uses
DSO. Performance is absolutely critical for this
machine, it's going to be handling millions of web
'hits' per day.
My
Thanks guys,
Marty
--- Tom Schindl <[EMAIL PROTECTED]> wrote:
> Martin Moss wrote:
> > All,
> >
> > I have an interesting issue. I'm in the process of
> > whitelabeling a website, but part of the process I
> > need to whitepabel is hosted by a
All,
I have an interesting issue. I'm in the process of
whitelabeling a website, but part of the process I
need to whitepabel is hosted by an outsourced company.
Rather than get the outsource company to change their
html, I would rather download and edit the html from
the outsourced website on t
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri,
2004-07-23 at 18:12, MARTIN MOSS wrote:
> > My question is, If you don't have a PerlModule
> > statement or a use My::Module, or a require or a
> > +My::Module statement so it looks like this
> >
Thanks very much Perrin,
Have a nice weekend,
Marty
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri,
2004-07-23 at 18:12, MARTIN MOSS wrote:
> > My question is, If you don't have a PerlModule
> > statement or a use My::Module, or a require or a
> > +M
> > > It is setup like this:-
> > >
> > >
> > > SetHandler perl-script
> > > PerlHandler My::Package
> > >
> > Shouldn't that be
> >PerlHandler My::Package->handler
>
> Technically that isn't necessary if your method is
> called handler() and
> you have prototyped it with ($$).
>
I've go
Michael <[EMAIL PROTECTED]> wrote:Perrin Harkins
wrote:
> On Thu, 2004-07-22 at 11:26, MARTIN MOSS wrote:
>
>>This error doesn't occur on machines running the
same code (mirrored
>>in the same way as the redhat box), it works
perfectly fine.
>>
>>Has a
I'm not sure, is there a way to find out what options apache has been built with?
There are no differences in code & http.conf between the working machines, only OS versions.
MartyPerrin Harkins <[EMAIL PROTECTED]> wrote:
On Thu, 2004-07-22 at 11:26, MARTIN MOSS wrote:>
All,
I have a quirky issue concerning a redhat machine and Apache 1.
I have a method handler
sub handler ($$)
{
my $class=shift;
my $r = shift;
}
Which when running on a redhat linux machine dies with the error message "Attempt to bless into a reference" and when analysing the incoming v
You didn't specify which Database server you're using. If it's mysql you need to be cautious of the 'ping' method used by Apache::DBI to check if a connection is stale or not. the DBD::mysql ping method always returns a 'true' string e.g. "0 but true" rather than a 1 or a 0.
I believe the latest
All,
I have a few modules which cache a few arrays. I want to get around the problem of these arrays staying cached when Apache Restarts gracefully. I can't have the server stop and start, and Apache::Reload isn't really the solution for this problem (or at least I don't think it is).
Has anybo
Heyho,
If I have a url of http://some.domain.com/test/index.html#test
When I do a $r->uri I ge the url path /test/index.html
and $r->path_info is blank.
How do I get the #test anchor bit on the end of the url?
Regards
Marty
78 matches
Mail list logo