modperl book chapter 7 - correction

2001-02-20 Thread Kees . Vonk
:^/: 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

Escaped '/' (%2F) causes path_info to fail.

2001-02-20 Thread Kees . Vonk
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

Re:[Mason] Escaped '/' (%2F) causes path_info to fail.

2001-02-20 Thread Kees . Vonk
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

[OT] intermitant path info problem

2001-02-19 Thread Kees . Vonk
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

Re: fork inherits socket connection

2000-12-21 Thread Kees Vonk 7249 24549
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

Re: Apache::LogSTDERR

2000-12-20 Thread Kees Vonk 7249 24549
Has anyone found this module yet? Kees

Re: Apache::LogSTDERR

2000-12-20 Thread Kees Vonk 7249 24549
couldn't find it anywhere. My apologies once more, Kees Vonk

Apache::LogSTDERR

2000-12-15 Thread Kees Vonk 7249 24549
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

Re: fork inherits socket connection

2000-12-15 Thread Kees Vonk 7249 24549
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

fork inherits socket connection

2000-12-14 Thread Kees Vonk 7249 24549
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

Digest List doesn't show subjects!!!!

2000-12-07 Thread Kees Vonk 7249 24549
in the digest to see if anything seems interesting.) Kees Vonk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Digest List doesn't show subjects!!!!

2000-12-06 Thread Kees Vonk 7249 24549
in the digest to see if anything seems interesting.) Kees Vonk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Digest List doesn't show subjects!!!!

2000-12-05 Thread Kees Vonk 7249 24549
in the digest to see if anything seems interesting.) Kees Vonk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Anyone get Apache::PerlVINC to work?

2000-08-21 Thread Kees Vonk 7249 24549
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

Re: [ ANNOUNCE ] Apache::PerlVINC v0.02

2000-07-26 Thread Kees Vonk 7249 24549
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

RE: system

2000-06-08 Thread Kees Vonk 7249 24549
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

RE: ANNOUNCE: mod_perl Guide 1.24

2000-06-08 Thread Kees Vonk 7249 24549
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

Re: ANNOUNCE: mod_perl Guide 1.24

2000-06-08 Thread Kees Vonk 7249 24549
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

Re: ANNOUNCE: mod_perl Guide 1.24

2000-06-08 Thread Kees Vonk 7249 24549
Stas, just did another search and now (13:15 BST) it is there. Kees

Apache::PerlVINC again

2000-06-01 Thread Kees Vonk 7249 24549
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

Perl Section questions

2000-05-31 Thread Kees Vonk 7249 24549
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

backticks in perl sections?

2000-05-30 Thread Kees Vonk 7249 24549
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

Can't call method bytes_sent

2000-05-25 Thread Kees Vonk 7249 24549
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

Re: Apache::PerlVINC

2000-05-24 Thread Kees Vonk 7249 24549
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:

Re: Apache::PerlVINC

2000-05-23 Thread Kees Vonk 7249 24549
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

RE: mod_perl on HP-UX ?

2000-05-22 Thread Kees Vonk 7249 24549
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

Apache::PerlVINC

2000-05-18 Thread Kees Vonk 7249 24549
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

Re: multiple copies of a module

2000-05-17 Thread Kees Vonk 7249 24549
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

RE: To-Experts: BIG problem: my variables in nested subroutin

2000-05-09 Thread Kees Vonk 7249 24549
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

mod_proxy problem

2000-04-25 Thread Kees Vonk 7249 24549
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

Re: mod_proxy problem

2000-04-25 Thread Kees Vonk 7249 24549
| 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/

RE: WindowsNT Explorer like look and feel??

2000-04-19 Thread Kees Vonk 7249 24549
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

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Kees Vonk 7249 24549
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

Re: Another install question: CGI.pm not found

1999-12-17 Thread Kees Vonk 7249 24549
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?

perl-script breaks cgi?

1999-12-15 Thread Kees Vonk 7249 24549
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

One handler covering the whole site

1999-12-14 Thread Kees Vonk 7249 24549
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