:^/: or index($uri, '*') != -1) {
because index returns -1 if the substring does not exist, and -1
evaluates as true.
Kees Vonk
Internet Programmer
7249 27705
__
The views expressed in this email are not necessarily the views
or
mason. Can anyone reproduce or explain this behaviour.
I am using apache 1.3.17, modperl 1.25 on HPUX 10.20.
Please can anyone help me with this, it is causing real problems.
Kees Vonk
__
The views expressed in this email
The apache error log does not show the filename that caused the 404.
This surprised me as well, I even installed Apache::LogSTDERR, but
that doesn't produce any output either.
Kees Vonk
[EMAIL PROTECTED]
20/02/01 19:35
this
happens or where to look.
I am currently using apache 1.3.12, mod_perl 1.21, mason 1.0, perl
5.003_03
Kees Vonk
Internet Programmer
7249 27705
__
The views expressed in this email are not necessarily the views of
Transco plc
Below is a solution to this problem:
* fork the long running process from mod_perl
* and be able to restart the server
o without killing this process
o without this process keeping the socket busy
and thus preventing the server restart
Thanks to Doug for the hint. You
Has anyone found this module yet?
Kees
couldn't find it anywhere.
My apologies once more,
Kees Vonk
I read in the guide about Apache::LogSTDERR, but I don't seem
to be able to find it on CPAN. Can anyone tell where I can
find this?
Kees
Stas,
I had the following in my code:
my($nOrgPID) = fork;
exit if $nOrgPID;
die "Could not fork: $!" unless defined $nOrgPID;
close STDIN;
close STDOUT;
close STDERR;
setsid() or die "Could not start new session: $!";
but that didn't work, however
an idea how to get around this? Can I get to
the inherited socket connection and close it when I have
detached from the calling process?
Kees Vonk
in the digest to see if anything
seems interesting.)
Kees Vonk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in the digest to see if anything
seems interesting.)
Kees Vonk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in the digest to see if anything
seems interesting.)
Kees Vonk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have managed to get Apache::PerlVINC to work on the
following configuration:
Apache/1.3.6 (Unix) mod_perl/1.21 mod_ssl/2.3.5
OpenSSL/0.9.3a
but never on
Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.8 OpenSSL/0.9.4
I am still not sure why it doesn't work on the second config
(seemed a
Dave,
you say you have revamped the directives, is that the only
change you have made or are there functional changes as well?
If not what is the advantage of using this new version over
the old one (as I have managed to get that working).
Kees
PS. sorry for the late reply, I have been on
on success. You can always do:
system("./cserver mylogfile 21 ")
to see what cserver outputs on STDOUT and STDERR. Also make sure that your
working directory is what you expect it to be. (Try for instance Cwd.pm to
check that.)
Hope this helps,
Kees Vonk
Stas,
I just logged on to CPAN to download the latest version of
the guide, and even though CPAN thinks version 1.24 is there
(search for mod_perl_guide) the actual file is not there in
your directory (this was at 11:20 BST (08/06/2000)).
Kees
Stas,
I was searched at search.cpan.org and then followed the link
from there, as far as I know that is a link to www.perl.com.
Kees
Stas,
just did another search and now (13:15 BST) it is there.
Kees
The following works on Apache/1.3.6 (Unix) mod_perl/1.21
mod_ssl/2.3.5 OpenSSL/0.9.3a
But when running on Apache/1.3.9 (Unix) mod_perl/1.21
mod_ssl/2.4.8 OpenSSL/0.9.4, I get the following problem
which _appears_ (I am not 100% sure) to be caused by
Apache::PerlVINC. I have the following
I have two questions about perl sections:
1) Has setting an entry in the %ENV hash in a perl section
the same effect as using a SetEnv (or PerlSetEnv)
directive (What btw is the difference between SetEnv and
PerlSetEnv, both seem to effect %ENV in the same way.)
2) If the order of
I have a question about perl sections, I have the need to
build a httpd.conf file that can be run on more than one
server, this means that I need to determine what the server
name is (for the ServerName directive), I think I can do this
by putting:
Perl
$ServerName = `uname -n`;
/Perl
What could cause the following error in a Perl Section (in
the middle of a virtual host declaration)?
Syntax error on line 350 of /opt/ward/apache/conf/httpd.conf:
Can't call method "bytes_sent" on an undefined value at
/opt/perl5/lib/5.00503/CGI/Carp.pm line 344.
Kees
try this in httpd.conf:
Perl
delete $INC{'Apache/PerlVINC.pm'};
require Apache::PerlVINC;
/Perl
Apache start up now (why does mod_perl not do this, can you
explain?), however I get the following error when trying to
access a page that contains the reloaded module:
I am testing the use of Apache::PerlVINC but I think I must
do something wrong because I get an error on the PerlRequire
statement in the following bit of httpd.conf when starting
apache:
PerlINC /opt/ward/IDV/DEV/Modules
PerlRequire Ward/IDV/IDVDatabase.pm
PerlINC
Are there any gotchas to using mod_perl on HP-UX? I seem
to remember somewhere in the Apache documentation something
about HP-UX implemented shared memory in a weird way...
I have been using mod_perl on HP-UX 10.20 for a long time and
as far as I know I there are no real problems (I use
I am testing the use of Apache::PerlVINC but I think I must
do something wrong because I get an error on the PerlRequire
statement in the following bit of httpd.conf when starting
apache:
-
PerlModule Apache::PerlVINC
VirtualHost _default_:8443
Stas Bekman wrote:
Both questions are already answered in the guide:
Kees' original:
http://perl.apache.org/guide/modules.html#Apache_PerlVINC_set_a_differe
Gunter's suggestion:
http://perl.apache.org/guide/control.html#Starting_a_Personal_Server_for_E
Thank you very much this is
QUESTION: But how should I transform the script, if the
anonymous subs call each other?
Very simple little example:
#!/usr/bin/perl -w
use strict;
my $i = 0;
my $a;
my $b = sub { print "$i\n"; exit if $i++ = 10; $a };
$a = sub { print "$i\n"; exit if $i++ = 10; $b };
$a;
Does that
anybody give me some insight as to what I am doing wrong?
I am new to mod_proxy and I don't even know where to start
looking.
Kees Vonk
| VirtualHost _default_:8082
|DocumentRoot "/app/env_control/httpd/DocumentRoot"
|Location "/Test"
| # disable mason for this location
| SetHandler default-handler
|/Location
|ProxyPass/Test/ http://myhost:8084/Test/
|ProxyPassReverse /Test/
Does anyone know of an easy way to get a WindowsNT explorer
(expanding directory/folder) lokk and feel using modperl?
I know this is off topic, but have a look at
http://www.alchemy-computing.co.uk/joust/
which is a (free) javascript implementation that gives you
more or less what you want
However, if I'd like to do so, I'd have to split up my httpd.conf
into a part with mod_perl-using-vhosts and a part with the remaining
vhosts and setup 2 startup scripts for 2 separate apache instances,
both listening on port 80 (or 443 for https).
I think you might find the answer to this
Can't locate CGI.pm in @INC at
/mod_perl-1.21/t/net/perl/cgi.pl line 7.
If CGI.pm readable by the user running apache?
I just ran into a problem I don't understand:
I was testing a PerlAccessHandler on a cgi (not modperl)
directory like this:
Directory /my/user/directory
SetHandler perl-script
PerlAccessHandler My::Access
/Directory
when I tried to access a cgi script and got passed the access
control
I am trying to implement a small mod_perl handler that will
affect the whole site, but at the same time should also let
every other handler do its work.
I have tried the following in my httpd.conf:
...
LocationMatch /
SetHandler perl-script
PerlHandler My::Handler
/LocationMatch
36 matches
Mail list logo