rewrite rules in Perl sections

2001-04-04 Thread Francesc Guasch
Hi. I found and old thread about having rewrite rules inside Perl sections in httpd.conf. In these mails it looks like there is not an easy way to do this. Is that still true ? I've tried different guesses unsuccessfully: $RewriteRule="^/(img/.*) http://other.server/$1";

no_cache pragma/cache-control headers : confusion

2001-04-04 Thread Patrick
Dear all, There is some kind of confusion in my head, and the Eagle book seems to me even more confusing. Any help appreciated. First, I always thought that no_cache() does everything regarding headers, and that you have just to turn it on or off. However I discovered yesterday that, at least

Re: [OT] Apachecon folks

2001-04-04 Thread G.W. Haywood
Hi Gunther, On Wed, 4 Apr 2001, Gunther Birznieks wrote: Did you check under the bar...? :) Thanks for brightening my day, Gunther. Wish I was under the bar with Matt. 73, Ged.

accessing SSL environment data in Perl*Handler

2001-04-04 Thread Paul
Though I feel rather foolish, the fact remains that I can't seem to find my SSL environment variables. httpd.conf has Directory / SSLVerifyClient require SSLOptions+StdEnvVars # ... /Directory Exactly when and where are they set? For example, SSL_CLIENT_S_DN. Once set,

[OT] activescripting.org

2001-04-04 Thread Frank Stuehmer
Hi folks, could anybody tell me whats wrong with www.activescripting.org ? There are many links in the net for there OpenASP and I can't retrieve the sources. There is no answer for weeks. I tried apache:asp with mod_perl - works fine, but I need to transform ASP in VB from MS-Server. The

Getting AuthCookie to return a wml page

2001-04-04 Thread Michael Smith
Dear All, I'm trying to use AuthCookie to return a wml page for those lucky people on wap browsers. I've got it all working nicely for normal web browsers, but am getting errors on wap (and the Nokia Wap Toolkit doesn't tell me very much about why it's an error). One thing that looks a bit

RE: Apache::AuthCookieDBI forgets its config [SOLVED]

2001-04-04 Thread Rob Bloodgood
OK, more examination reveals that: At the time this BEGIN block is running, this call: my @keyfile_vars = grep { $_ =~ /DBI_SecretKeyFile$/ } keys %{ Apache-server-dir_config() }; is returning EMPTY. Meaning it's evaling too early to see the dir_config???

RE: no_cache pragma/cache-control headers : confusion

2001-04-04 Thread Kyle Oppenheim
Apache (as in httpd) will set the 'Expires' header to the same value as the 'Date' header when no_cache is flagged in the request_rec. When your Perl handler sets $r-no_cache(1), mod_perl (in Apache.xs) is setting the 'Pragma: no-cache' and 'Cache-control: no-cache' headers in addition to

Re: access log and the request object

2001-04-04 Thread darren chamberlain
Andrew Lau ([EMAIL PROTECTED]) said something to this effect on 04/04/2001: I am currently developing a Perl based apache module and was wondering if such a functionality was available. From within the module would it be possible to modify the request object so that the url that gets logged

Run away processes

2001-04-04 Thread Aaron Johnson
Hello all, Having some hard ( for me ) to track memory usage issues. We have moved our production environment to a new machine with what we thought was plenty of memory, but we seem to have an erratic bit of code somewhere that eats all the available memory. We did not have this problem on our

Re: Exempt a directory from Location?

2001-04-04 Thread Tim Tompkins
Directory /full/path/to/htdocs/bin Satisfy any /Directory or, assuming that "bin" is at the root level of your document root, Location /bin Satisfy any /Location - Original Message - From: "Richard Anderson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 04,

Re: Run away processes

2001-04-04 Thread Aaron Johnson
In a private email someone mentioned that removing the \ before the $ might make the messages more meaningful. That code was copy and pasted from the current guide so if it should be $ and no \$ in front of UNIVERSAL then Stas might want to know :^) I changed it out and now it appears that it

Re: Run away processes

2001-04-04 Thread Ken Williams
[EMAIL PROTECTED] (Aaron Johnson) wrote: In "the guide" it is recommended that a sub in the startup.pl file: sub UNIVERSAL::AUTOLOAD { my $class = shift; warn "$class can't \$UNIVERSAL::AUTOLOAD!\n"; } You'll get more useful information if you get rid

Re: Run away processes

2001-04-04 Thread Tim Tompkins
You don't need to trap DESTROY calls. But if you're defining an AUTOLOAD, you typically want to just return if the subroutine being called is DESTROY. Thanks, Tim Tompkins -- Staff Engineer / Programmer http://www.arttoday.com/

Re: access log and the request object

2001-04-04 Thread Mike Cameron
How about writing your own log handler PerlLogHandler My::LogModule or in your code $r->push_handler(PerlLogHandler => \MyLoghandler); sub MyLoghandler{ my $r=Apache::Request; code to log info to file } the push_handler method does not pass the request object to the subroutine. Andrew Lau

Apache::ASP -- Corruption of statedir files/truncation of methodnames

2001-04-04 Thread Carl Lipo
I've just started having problems with asp state files for Apache::ASP 2.09 becoming corrupted during use. My application will work just fine but at somepoint the session asp state files get corrupted and only deleting them allows the application to continue working. Oddly, this occurs on two

Re: Run away processes

2001-04-04 Thread Aaron Johnson
So should the entry in the Guide be rewritten to: sub UNIVERSAL::AUTOLOAD { my $class = shift; if ($UNIVERSAL::AUTOLOAD !~ /DESTROY$/) { warn "$class can't $UNIVERSAL::AUTOLOAD!\n"; } } ?? Tim Tompkins wrote:

Re: Run away processes

2001-04-04 Thread ___cliff rayman___
i think that it should be: warn "\$class=$class can't \$UNIVERSAL::AUTOLOAD=$UNIVERSAL::AUTOLOAD!\n"; leads to less grepping and a quicker understanding of the problem. -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ Aaron Johnson wrote: So should the entry in the Guide be rewritten to:

Re: Run away processes

2001-04-04 Thread Stas Bekman
On Wed, 4 Apr 2001, Ken Williams wrote: [EMAIL PROTECTED] (Aaron Johnson) wrote: In "the guide" it is recommended that a sub in the startup.pl file: sub UNIVERSAL::AUTOLOAD { my $class = shift; warn "$class can't \$UNIVERSAL::AUTOLOAD!\n"; }

Re: Apache::ASP -- Corruption of statedir files/truncation of methodnames

2001-04-04 Thread Carl Lipo
In addition: here are the httpd.conf configurations for this application: FilesMatch "\.(htm|asp)$" PerlSetVar Global /usr/local/etc/infosource/apps/netcfg/ # PerlSetVar Global . PerlSetVar GlobalPackage INAP::NEIS PerlSetVar StateDir

[BUG?] CGI::Cookie-parse() deletes $r-content()

2001-04-04 Thread Michael Lazzaro
I'm looking to see if anyone can verify whether the following behavior is a Feature or a Bug. From within a PerlRequestHandler: my $content = $r-content(); my $cookie = CGI::Cookie-parse( $r-headers_in-get('Cookie') ); works fine, but the reversed code: my $cookie =

Re: Apache::ASP -- Corruption of statedir files/truncation of methodnames

2001-04-04 Thread Joshua Chamas
Carl Lipo wrote: I've just started having problems with asp state files for Apache::ASP 2.09 becoming corrupted during use. My application will work just fine but at somepoint the session asp state files get corrupted and only deleting them allows the application to continue working. Oddly,