Re: which handler?

2002-06-14 Thread Geoffrey Young
Gabriel C Millerd wrote: On Fri, 14 Jun 2002, Geoffrey Young wrote: that's odd. the above code essentially acts as though the user entered /not_ok_page.html in their browser all by themselves. maybe I incorrectly assumed that's what you were looking for? well the problem

Re: Sending Mail

2002-06-13 Thread Geoffrey Young
Jon Robison wrote: Can MIME::Lite do attachments? yes. there is an example in the cookbook that uses MIME::Lite: http://www.modperlcookbook.org/code/ch15/Cookbook/Mail.pm http://www.modperlcookbook.org/code/ch15/Cookbook/EmailUploads.pm HTH --Geoff

Re: Apache::URI::hostname is blank

2002-06-13 Thread Geoffrey Young
Adam Ness wrote: For some odd reason, Apache::URI::hostname is showing up as blank. I've tried reading the various man pages and the Oriley book, but I can't find any explanation for why hostname would be blank.. Am I overlooking something? yes :) see Recipe 5.3 in the cookbook for

Re: which handler?

2002-06-13 Thread Geoffrey Young
Gabriel C Millerd wrote: i want to make a apacher perlhandler method for location / (i think) that will check and see if my system state is ok (like database, jabber, and imap connectivity), and if not will redirect to another page. if everything is kosher i would like everything to move

Re: Anti caching and auto refresh problem

2002-06-12 Thread Geoffrey Young
Steve Walker wrote: I'm setting the following headers with mod_perl and there seems to be a bug in the way netscape 4.7 handles them. The page is being auto refreshed by Netscape if the document in cache is compared to document on network preference is set to every time. I've tried IE and

Re: [OT] mod_perl obfuscation / T-shirt ?

2002-06-11 Thread Geoffrey Young
Thomas Klausner wrote: Hi! Concerning the yearly what to put on the t-shirts-discussion... ah, yes... :) I was thinking about doing a mod_perl Obfuscation for some time, and today I found some time and wrote up something .. It's not that much obfusacated, but it looks nice

Re: DBI error_log Logging

2002-05-31 Thread Geoffrey Young
Cees Hek wrote: Quoting Jayce^ [EMAIL PROTECTED]: I've been researching the different modules for pushing your access log to a dbi storage vs. local file and have one question which I'm not sure any of them are able to do yet. Perhaps somebody has already thought of this and I'm just

Re: DBI error_log Logging

2002-05-31 Thread Geoffrey Young
Jayce^ wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 along those same lines, I forgot to mention Apache::LogSTDERR, which is similar I suppose (though I've never used it). Any idea where I can find this one? Searching CPAN doesn't give me anything.

Re: DBI error_log Logging

2002-05-30 Thread Geoffrey Young
Jayce^ wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been researching the different modules for pushing your access log to a dbi storage vs. local file and have one question which I'm not sure any of them are able to do yet. Perhaps somebody has already thought of this

Re: [RFC] Apache::DigestAPI

2002-05-28 Thread Geoffrey Young
ok... after talking things over with Andrew a bit more, Apache::DigestAPI has become Apache::AuthDigest. the package should actually compile and work now, too :) The latest version can be grabbed here: http://www.modperlcookbook.org/~geoff/modules/Apache-AuthDigest-0.01.tar.gz

Re: Patch to mod_perl 1.26: error-notes support

2002-05-28 Thread Geoffrey Young
Doug MacEachern wrote: thanks, i've applied a variation of your patch to cvs and will be in 1.27 if anybody wants to work up a similar patch for Apache::PerlRun, that'd be nice too. this seems to work ok as PerlRun and RegistryNG. --Geoff --- lib/Apache/PerlRun.pm 25 Mar 2002

Re: Strange subrequest dir_config issue

2002-05-23 Thread Geoffrey Young
Matt Sergeant wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is just a heads up on something I've not seen documented in either the Eagle book or in the Cookbook (at least not that I can find). If you create a subrequest via $r-lookup_file(), the per_dir_config entry

[RFC] Apache::DigestAPI

2002-05-23 Thread Geoffrey Young
hi all... I wanted to present Apache::DigestAPI as an RFC. the module can be downloaded here for trials: http://www.modperlcookbook.org/~geoff/modules/Apache-DigestAPI-0.01.tar.gz basically, Apache::DigestAPI is a release of Recipe 13.8 in the Cookbook - a simple API for supporting

Re: [RFC] Apache::DigestAPI

2002-05-23 Thread Geoffrey Young
Andrew Ho wrote: Hello, GYApache::DigestAPI is a release of Recipe 13.8 in the Cookbook - a simple GYAPI for supporting Digest authentication a la mod_digest.c from the GYApache distribution. I think this is a great idea. I'm a huge fan of digest authentication as a simple basic

Re: [RFC] Apache::DigestAPI

2002-05-23 Thread Geoffrey Young
Andrew Ho wrote: Hello, GYwell, it's an API in that it doesn't do anything for you except provide GYan API. meaning, I'd expect Apache::AuthDigest to work as so: GY GYPerlAuthenHandler Apache::AuthDigest GY GYall this module does is provide methods that parallel

Re: Apache::DBI connection cache

2002-05-22 Thread Geoffrey Young
Ask Bjoern Hansen wrote: Apache::DBI is turning the argument hashref into the cache key with the following code, my ($key, $val); while (($key,$val) = each %{$args[3]}) { $Idx .= $;$key=$val; } can anyone think of a good reason not to change that to

Re: Setting require in Authentication handler?

2002-05-20 Thread Geoffrey Young
Todd Chapman wrote: Can dir_config be used to set 'require' in an authentication handler? no. dir_config() provides access to a mod_perl specific table of variables, not generic Apache configuration directives. there is no API for setting the Require directive - it needs to be in your

Re: Setting require in Authentication handler?

2002-05-20 Thread Geoffrey Young
Todd Chapman wrote: I need to decide who has access based on the URI. I guess this means I can't use Apache's Basic auth module, since I can't dynamically set require. as I was saying, go ahead and set the Require directive on the Location (or whatever) that you want to protect. if a

Re: Setting require in Authentication handler?

2002-05-20 Thread Geoffrey Young
Todd Chapman wrote: That makes sense. I can't use mod_auth because I can't set Require. well, if you're saying that you don't have the ability to set the Require directive at all (as in you don't have access to edit httpd.conf), then you can't run any authentication handler - mod_auth,

Re: undef Upload object

2002-05-20 Thread Geoffrey Young
Mike Melillo wrote: I am trying to have a user upload an image and I am getting an undef $apr-upload object. [snip] sub upload { my ($r) = shift; my $apr = Apache::Request-new($r); my $status = $apr-parse; you might want to check the status of that

Re: Dynamically Changing the Document Root

2002-05-17 Thread Geoffrey Young
Is there a way to do this? The documentation does not have any reference to be able to change the document root (just get it via $r-document_root). see recipe 4.3 in the cookbook for a description of $r-document_root and the perils involved. the minimum you should be aware of is that

Re: Error messages for VirtualHosts written to wrong log

2002-05-16 Thread Geoffrey Young
Michael E. Lewis wrote: I sure hope I'm not asking a stupid question here. We are preparing to upgrade our production mod_perl servers: From: To: RedHat 6.2 RedHat 7.2 kernel-2.2.19-6.2.7 kernel-2.4.9-31 Apache_1.3.12 Apache_1.3.23

Re: automatic redirect to https

2002-05-14 Thread Geoffrey Young
Aaron J Mackey wrote: Yes: simply because I want to be able to install the software at new sites with minimal httpd.conf twiddling (and the user has a configuration file in which they can switch on/off the SSL requirement). in that case, you probably want to check

Re: unable to use method type handlers?

2002-05-14 Thread Geoffrey Young
Jeff AA wrote: Try per load the class my::class via startup.pl or PerlModule I already had PerlModule my::classes in httpd.conf Tried PerlRequire as well - still the same error the steps are outlined pretty well in recipe 10.3 (since you mentioned the cookbook earlier). from the looks

Re: automatic redirect to https

2002-05-13 Thread Geoffrey Young
Aaron J Mackey wrote: Can anyone see something wrong with this, or suggest a better mechanism: unless ( $ENV{HTTPS} ) { # bounce request to secure port my $uri = $r-parsed_uri(); $uri-scheme('https'); $r-header_out(Location = $uri-unparse());

Re: automatic redirect to https

2002-05-13 Thread Geoffrey Young
Aaron J Mackey wrote: On Mon, 13 May 2002, Geoffrey Young wrote: my $uri = Apache::URI-parse($r); Well, now $uri-unparse yields this: null: https://_default_/mydirectory; Which of course doesn't work in the Location field of the redirect. I can munge this as I need, but I

Re: Problems with mod_perl installation(HELP!!!)

2002-05-10 Thread Geoffrey Young
Stas Bekman wrote: [Please make sure to reply back to the list! Thanks] Jose Ortiz wrote: People : I had spent more than 2 months trying to make mode_perl on my RH 72. First I tried with the RPMS but it didn't works. Then I tryied with the tar.gz and I can't neither.

Re: Logging Perl errors to browser

2002-05-07 Thread Geoffrey Young
Jeff wrote: Folks, How do I get to log my mod_perl handler Perl errors to the browser instead of into the Apache logs? see recipes 4.5 and (the more interestingly but less robust) 16.6 in the cookbook the code for each is here

Re: Apache::Reload question...

2002-05-03 Thread Geoffrey Young
The question I had regards where to put the 'Apache::Reload' directive. The documentation suggests something like: PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off PerlSetVar ReloadTouchFile /tmp/reload_modules The problem I see in a production machine is that

Re: Help with Method Handlers in mod_perl 1.99

2002-05-03 Thread Geoffrey Young
Peter Rothermel wrote: Can somebody help me out with Method Handlers in Apache2 - mod_perl 1.99? I'm new to windows and its threading issues. [snip] sub authenticate ($$) { my ($self, $r) = _; return OK; } I haven't played much with mod_perl 2.0 yet, but I know that this

Re: Many requests per page

2002-05-02 Thread Geoffrey Young
I thought $r-content_type was used for the server to set the content type for a response, not discover it from the request. $r-content_type is just a get/set routine for the request record, giving you the option to either peek at it or set it yourself. So it should I think be empty

Re: problems setting up Apache::AuthCookieDBI

2002-05-02 Thread Geoffrey Young
I'm not sure, but I think PerlSetVars aren't merged into location-specific configuration, so they might not actually be caught by Apache::AuthCookieDBI they should merge just fine. I do stuff like PerlSetVar DBASE dbi:Oracle:HELM all the time and grab it in Location specific handlers

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Geoffrey Young
Fran Fabrizio wrote: I spoke too soon. I need: Perl push Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ]; /Perl This does not appear to be possible because there's no way to pass in SERVER_ROOT to the apache startup. I have SERVER_ROOT getting set in

Re: Help needed tracking down 'Callback called exit' problem

2002-04-29 Thread Geoffrey Young
Is there anyway to have the parent apache process log all creations/exits of the children? This way I could setup an access log with the PID of each child and then trace back all requests served after it's death. recipe 17.5 in the cookbook describes how to do this. basically you can hook

Re: Soaplite debugging with modperl

2002-04-26 Thread Geoffrey Young
Richard Clarke wrote: Hi Guys, Can someone suggest a good method for debugging the server portion of soaplite applications when used in a mod perl context. Debugging in the sense that I want to print out strings to apache log or similar. I've had good with this setup for the

[ANNOUNCE] Apache::Clean 0.04

2002-04-25 Thread Geoffrey Young
The URL http://www.modperlcookbook.org/~geoff/modules/Apache-Clean-0.04.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Clean-0.04.tar.gz size: 5009 bytes md5: 867280d1d142c8099380e189332244c5 this release adds a new directive, CleanCache, which controls

Re: Q A: $r-custom_response

2002-04-23 Thread Geoffrey Young
Can anyone tell us if the Apache::Constants all just standard HTTP response codes, or are some of them actually Apache-specific? there are over 90 constants in Apache::Constants, which range from HTTP constants (like FORBIDDEN for 403) to Apache specific ones (like DECLINED for -1 and

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-22 Thread Geoffrey Young
Here's what Geoffrey Young said, you seem to have missed it: you can't use $s (the server record) to capture PerlSetVar that exist on a per-directory basis (within a Location or Directory block). try Apache-request-dir_config('BlaTest'); instead. you should use $s-dir_config

Re: Problem using Perl Modules under mod_perl / PerlSetVar not working

2002-04-21 Thread Geoffrey Young
PerlSetVar seems not to work for me! The part of interest in my httpd.conf looks like this: Alias /contest /www/u-dev/contest PerlModule Apache::Registry PerlModule Apache::DBI PerlTaintCheck On Location /contest PerlSetVar BlaTest BlaVal SetHandler

Re: Inline generation of error document?

2002-04-18 Thread Geoffrey Young
Bas A. Schulte wrote: Hi all, I'm a little confused (honestly). I want to handle parameter errors in a content handler. When there's a parameter missing in the URL, my handler returns HTTP_BAD_REQUEST. Now Apache sees the HTTP_BAD_REQUEST return value from my handler and generates

Re: Kind-of PerlSections, and location question

2002-04-15 Thread Geoffrey Young
what I'm hoping to be able to do should only have to load the settings once (the first time a request comes in for that location) for each process, so I'm not too concerned about database access.. The main question I need answered first is, is this even possible? IIRC, Jay Lawrence was

Re: Trapping browser events

2002-04-12 Thread Geoffrey Young
Mark Fowler wrote: On Fri, 12 Apr 2002, Jacob Elder wrote: last if $r-connection-aborted; There's a more full discussion of this in the mod_perl developer's cookbook in section 4.8. They postulate a module for checking a little more carefully, source of which is here:

Re: Ordering in %INC for PerlRestart

2002-04-10 Thread Geoffrey Young
Fran Fabrizio wrote: Thanx for the reply (I hardly get replies for subjects with restart :-( I guess I'm the only one using PerlFreshRestart (sic !). Hopefully you are the only one! Pardon my newbie-ness, but can someone explain the perils of PerlFreshRestart in a bit more

Re: Configuration of mod-perl and cgi-bin in appach conf file

2002-04-08 Thread Geoffrey Young
Wong, Connie wrote: Hello Geoffrey, hi... these types of questions are probably more suited to the general mod_perl list, so I've cc'd them. My host is running an Apache server with mod-perl, and I have all the html files resided in the /usr/local/apache/htdocs directory and all my perl

Re: Thanks and GoodBye

2002-04-05 Thread Geoffrey Young
John Kolvereid wrote: Hi, Thanks for all your help, but I am NOT able to install mod_perl. don't give up, john. it's a hard road, especially for those just starting out, but it is worth it :) I haven't read all of your thread in detail, but I would suggest that if you are really

Re: AuthCookie login ?

2002-04-05 Thread Geoffrey Young
Since the authentication happens on every trip into the server, and I don't want to run my code (to set up an Apache::Session for the user's session data) until I'm sure I have a valid user on my hands, I can't see a way to do the session setup only the first time after a sucessful login.

Re: Be carefull with apache 1.3.24

2002-03-25 Thread Geoffrey Young
In /path/to/apache1.3.24/bin/apachectl add a -DAPACHE_1_3_24 to the httpd command. In your httpd.conf add IfDefined APACHE_1_3_24 ProxyIOBufferSize 10 /IfDefined I think that should work you could also do something hackish like this to avoid command line switches Perl

Re: cvs commit: modperl/t/net/perl util.pl

2002-03-25 Thread Geoffrey Young
Doug MacEachern wrote: i had a bad feeling about this. we should not be implementing escape_html to begin with, the functionality should all be in apache. i'm going to back out the patch. sounds wise, especially considering people like Eric will end up with larger pages as a result,

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Geoffrey Young
Jeff wrote: Just Curious of Hither Green writes: I feel like a right tit for asking this... I already have mod_perl et al running, including my persistent DB connections etc etc, but following gourmet cookery advice on this list induced me to buy a copy of the mod_perl

Re: mod_perl developers cookbook... a kitchen hand asks... doh!

2002-03-23 Thread Geoffrey Young
OK is a constant for the HTTP return code 200. close. OK is 0, which is different from HTTP_OK which is 200. --Geoff

Re: Performace...

2002-03-23 Thread Geoffrey Young
John Von Essen wrote: Im curious as to the difference in performance when using perl scripts with Apache::Registry or writing complete Apache Modules in Perl that conform to the API? straight mod_perl handlers are faster than Apache::Registry, but they lack some of the convenience that

Re: Accessing Apache master process pid

2002-03-20 Thread Geoffrey Young
Jon Jensen wrote: On Wed, 20 Mar 2002, Stas Bekman wrote: Jon Jensen wrote: Within mod_perl, I would like to know the pid of the master Apache daemon, perldoc -f getppid Thanks, Stas. I should've found that. I'm still interested in getting the PidFile setting at runtime, but

Re: Forgot to load Apache::Request?

2002-03-19 Thread Geoffrey Young
Alexander Hanuska wrote: I am trying to call the Apache::Request module from one of my modules that I wrote and here is the error I get in my error_log: Can't locate object method new via package Apache::Request blablabla looks like you are doing everything right... you know

Cookbook Chapter 4 online!

2002-03-18 Thread Geoffrey Young
just in case anyone is interested, WebReference.com is hosting Chapter 4 from the mod_perl Developer's Cookbook starting today: http://www.webreference.com/programming/perl/cookbook/ this is in addition to chapters 1, 7, and 16 which are already available at our website

Re: Asia To USA Shipping Rates

2002-03-18 Thread Geoffrey Young
[EMAIL PROTECTED] wrote: We have a full collection of wholesale freight rate calculators at Aaaahhh!! Ask, anybody, make it stop!!! --Geoff

Re: [ANNOUNCE] The New mod_perl logo - results now in...

2002-03-15 Thread Geoffrey Young
David Ranney wrote: All, I really like the new logo, and in fact I voted for it. However, I just realized that the logo uses modperl, whereas mod_perl's name is mod_perl, with the underscore. Does anyone else see this as a problem? I've always been annoyed at how often the spelling gets

Re: Problem Removing Handlers

2002-03-14 Thread Geoffrey Young
Hans Poo wrote: Please Help One of my handlers do an: $r-set_handlers( PerlInitHandler = undef); Later in the same virtual host configuration there is another Directory covering the URL / with this handler. PerlInitHandler sub { my $r = shift; warn 'callback',

Re: Apache-print Timeout

2002-03-13 Thread Geoffrey Young
Stathy G. Touloumis wrote: Does anyone know how to set the time out value for Apache::print to a higher value if possible or how to avoid a timeout?? I am performing an import into a database that can vary in time (1min - 10min) and I would need to be able to handle this situation. Would

Re: Apache-print Timeout

2002-03-13 Thread Geoffrey Young
Stathy G. Touloumis wrote: Thanks for the response, Do you know if this setting taken from the Apache conf directive 'Timeout'? $r-server-timeout directly gets/sets the value for the httpd.conf Timeout directive for the server in question - see Chapter 4 in the cookbook ;) I don't have a

Re: Mapping files

2002-03-13 Thread Geoffrey Young
Stathy G. Touloumis wrote: Hi, I am trying to map a uri to a file based on certain factors. I would like to have this done after the 'Trans' phase when certain information is available. I noticed when the original file mapping does not exist (what apache maps in it's 'Trans' phase)

Re: If mod_perl module loaded from within httpd.conf

2002-03-13 Thread Geoffrey Young
George Sanderson wrote: What is the best way to check from within the httpd.conf file if a mod_perl module is loaded. For C modules, I can use: IfModule mod_perl.c ... /IfModule to conditionally load it's directives. Is there a similar conditional syntax for the mod_perl script modules?

Re: open3 and mod_perl

2002-03-13 Thread Geoffrey Young
Rasoul Hajikhani wrote: Hello folks, I am writing a web interface for the GPGP module that would allow users to create a new public and private key and adds them to the corporate key ring. I will be useing IPC::Open3 and IO::Select to control stdin and stdout of GPGP. Are there any

Re: Cookies and redirects

2002-03-12 Thread Geoffrey Young
Axel Andersson wrote: Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. this is a common problem - you have to add the cookie to the

Re: Cookies and redirects

2002-03-12 Thread Geoffrey Young
Geoff: I think I did this with my own module with no success... I'd end up with an extra set of headers, if I was _lucky_... perhaps that is due to a general misunderstanding of err_headers_out - they are sent _even_ on Apache errors (of which REDIRECT is considered one), not _only_ on

Re: Apache::Session problem with DBD::Oracle

2002-03-11 Thread Geoffrey Young
Brian Lavender wrote: I am trying to install Apache::Session and it is failing on the DBD::Oracle tests. It is asking for a default user. Do I need to configure Oracle for a default user? Or do I need to set some environment variable with a user id and password? well, looking at

Re: Upload Meter with Apache::Request

2002-03-09 Thread Geoffrey Young
Michael Dwyer wrote: Hi, I'm sorry if this has been covered, but i've scoured the net and can't find any documentation on exactly how to use the upload hook of Apache::Request to create a meter, as it states in the Apache::Request documentation. Just wondering if anyone can point me in

Re: Newbie install problems

2002-03-09 Thread Geoffrey Young
=== Building for mod_perl-1.26 (cd ./apaci PERL5LIB=/usr/ports/www/mod_perl/work/mod_perl-1.26/lib make) Perl lib version (5.00503) doesn't match executable version (5.006001) at /usr/libdata/perl/5.00503/mach/Config.pm line 7. I saw this just this week at work - turned out that

Re: Newbie help - My cookies won't bake?

2002-03-08 Thread Geoffrey Young
Jeff Armstrong wrote: Revered Chefs, Please forgive a mere mod_perl kitchen-hand, undergoing early cookie training... I have the following cookie code, but no cookies come back when I refresh, and I don't see any $HTTP_COOKIE in %ENV. $cookies ends up as a hash ref pointing to an empty

Re: Can anyone recommend a good flavour of Cookie?

2002-03-07 Thread Geoffrey Young
Jeff wrote: Please forgive a mod_perl wannabie [aka woza.PHP4.user] I have googled two differing flavoured cookies in the mod_perl recipe library: Apache::Cookie Apache::Cookie is a nice interface for cookies that is specific to the mod_perl environment. it parallels CGI::Cookie,

Re: Authentication redirection

2002-03-07 Thread Geoffrey Young
Christian Gilmore wrote: I am attempting to redirect certain users during the authentication phase to support password expiration management. I am not having success building it directly into the authentication module and think it may be perhaps that the internal REDIRECT constant is

Re: PerlFreshRestart, mod_perl DSO, and Apache::StatINC

2002-03-07 Thread Geoffrey Young
Gordon Henriksen wrote: I'm looking at how to best avoid downtime during a code upgrade, as we often do spot releases of critical code fixes and we're getting to the usage level that I don't want to interrupt service to deploy that code. At the same time, I want to avoid running 200

Re: PerlFreshRestart, mod_perl DSO, and Apache::StatINC

2002-03-07 Thread Geoffrey Young
The best way I've found to deal with this problem is to have multiple servers behind a load-balancer and do a rolling restart. If you have servers A and B, you take A out of the load balancer temporarilly, upgrade it, add it back in, take B out, upgrade it, add it back in. Using this

Re: [OT] redirect STDOUT

2002-03-06 Thread Geoffrey Young
Martin Haase-Thomas wrote: Hi all, instead of committing suicide after having tried and searched for all of the day now i'd rather ask you: does anyone know how to redirect STDOUT into a scalar variable, so that a 'print anything' will not appear on STDOUT, but only in my buffer? try

Re: Multiple Location directives question

2002-03-05 Thread Geoffrey Young
John Siracusa wrote: I have something like: Location /foo SetHandler perl-script PerlHandler My::Foo /Location Location / SetHandler perl-script PerlHandler My::Bar AuthName Bar AuthType Basic PerlAuthenHandler My::Auth::Bar PerlAuthzHandler My::Authz::Bar

RE: cvs commit: modperl/eg README httpd.conf.pl perl_sections.txt perl_sections_2.txt perlio.pl registry.pl startup.pl test.pl

2002-03-04 Thread Geoffrey Young
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 02, 2002 12:38 AM To: [EMAIL PROTECTED] Subject: cvs commit: modperl/eg README httpd.conf.pl perl_sections.txt perl_sections_2.txt perlio.pl registry.pl startup.pl test.pl ask

Re: RegistryLoader Segmentation fault

2002-03-01 Thread Geoffrey Young
whoops, forgot to CC the list, but it seems Ged stepped in with the same info Fran Fabrizio wrote: Hello, I'm trying to follow the script in section 214 of the book mod_perl Developer's Cookbook in order to pre-load my Apache::registry scripts using Apache::RegistryLoader I'm getting a

another article on perl.com

2002-02-27 Thread Geoffrey Young
it seems mod_perl is gathering some serious momentum lately... in addition to Paul's Preventing Cross-site Scripting Attacks article last week http://www.perl.com/pub/a/2002/02/20/css.html we have a new article by Stas, Why mod_perl? http://perl.com/pub/a/2002/02/26/whatismodperl.html so,

Re: another article on perl.com

2002-02-27 Thread Geoffrey Young
Issac Goldstand wrote: Can I humbly suggest some articles that would lead to a guide for mod_perl 2? I'm actually a bit embarrassed to admit that this is more out of personal laziness than real need... I've just been so swamped lately, I've never gotten around to looking at the API for

Re: Making perl handlers handle non-Perl

2002-02-27 Thread Geoffrey Young
Andy Lester wrote: How can I get mod_perl to handle all Apache output, whether or not it originates with mod_perl? I'm writing a module that needs to analyze all output generated by Apache. That's easy enough with stacked handlers, but I'm goofing something up with, say, static HTML.

Re: Making perl handlers handle non-Perl

2002-02-27 Thread Geoffrey Young
Andy Lester wrote: ok, SetHandler sets a content handler for a given Location - it supersededs everything else. unlike with normal Apache, mod_perl needs two things in order for your handler to be called: the content hander to be perl-script (for Apache) and the name of your handler

Re: Making perl handlers handle non-Perl

2002-02-27 Thread Geoffrey Young
Perrin Harkins wrote: Andy Lester wrote: I want my MyFilter to process EVERYTHING that Apache spits out, whether with mod_perl, mod_php or just reading a .html file from the filesystem, especially the mod_php stuff. Assuming you mean you want to look at the generated content from

Re: Deleting a PerlSetVar variable

2002-02-26 Thread Geoffrey Young
--Geoff cheers, simran. On Tue, 2002-02-26 at 00:03, Geoffrey Young wrote: simran wrote: Hi All, I could not find references on how to delete a varaible once set via PerlSetVar. I am setting a global 'PerlSetVar AuthNameExpires +24h' variable in my httpd.conf

Re: How to get a remote user from the mod_perl + SSL?

2002-02-26 Thread Geoffrey Young
Wong, Connie wrote: Hello, I'm running mod_perl with Apache-SSL on Solaris 8. I setup a self-certificate for the basic authentication. I want to get the login name from the client (REMOTE_USER). In CGI, there is an environment variable $ENV{REMOTE_USER} that I can use. In mod_perl with

Re: Deleting a PerlSetVar variable

2002-02-25 Thread Geoffrey Young
simran wrote: Hi All, I could not find references on how to delete a varaible once set via PerlSetVar. I am setting a global 'PerlSetVar AuthNameExpires +24h' variable in my httpd.conf and want to be able to set it back to expire at end of session for some virtual hosts. If i could

Re: htaccess and mime types

2002-02-25 Thread Geoffrey Young
I'm reading my Apache bible and the section on MIME types and my question is: Is there a way to modify the htaccess file so that regardless of the file requested (.gif, .wav, .jpg, etc.) they would receive a file recognizable as an html document or a plain text file when clicked on? well,

Apache::TaintRequest article on perl.com

2002-02-21 Thread Geoffrey Young
not sure if everyone here pays attention to perl.com on a daily basis, but Paul Lindner's article on Apache::TaintRequest showed up yesterday... from the perl.com email newsletter... Cross-site scripting attacks are a surprisingly little-known and surprisingly dangerous problem for anyone

Re: method handlers and push_handlers / set_handlers

2002-02-21 Thread Geoffrey Young
My question was really about the proper way to call method handlers from either push_handlers or set_handlers since the normal technique (first example above) calls them as normal subs, i.e. the first parameter is not the class name. The second example, however, seems to do the trick. I

Re: When handlers misfire

2002-02-21 Thread Geoffrey Young
I moved the session cleanup phase to a PerlLogHandler and it seems to be working, except for one small issue. Request URIs for directories (i.e. no filename specified) don't seem to trigger the log handler. I put some warnings in the code to trace its execution. The following is a dump

Re: file globbing question

2002-02-20 Thread Geoffrey Young
Cees Hek wrote: On Wed, 2002-02-20 at 13:27, John Stauffacher wrote: All, I am a bit confused as to what httpd.conf directives need to be used in order to get apache to execute a PerlHandler when it encounters a certain file type. What I want to do: Execute a handler whenever

Re: When handlers misfire

2002-02-20 Thread Geoffrey Young
Milo Hyson wrote: I just ran into a problem with my PerlFixupHandler/PerlCleanupHandler based session manager (discussed earlier). It seems there's no guarantee that the cleanup handler will fire before the browser receives the response from the content handler. um, yes there is.

Re: [OT] Apache Config Problem

2002-02-19 Thread Geoffrey Young
Robert Landrum wrote: I'm trying to do something really simple and trying to avoid writing an Modperl handler to do it. We have a website behind a bigip running on port 8080. When someone requests a URL that doesn't end with a slash, it's redirected to http://host:8080/path/ . I tried

Re: mod_perl cookbook ... Where?

2002-02-18 Thread Geoffrey Young
IEEE Consulting wrote: Where's the mod_perl Cookbook? you can find all types of information about the cookbook at http://www.modperlcookbook.org/ including places to purchase it and the source code from the entire book. enjoy! --Geoff

Re: inheritance and Apache::Request

2002-02-14 Thread Geoffrey Young
Alex Porras wrote: I am slowly learning about OO from Tom's tutorial, and was able to do inheritance with two dummy classes I wrote, including adding methods to the subclass and have them work too. However, when I tried to inherit from Apache::Request, it doesn't seem to work right. Maybe

Re: Multiple authentication methods

2002-02-13 Thread Geoffrey Young
Aaron Ross wrote: shouldn't stacked handlers be the right solution here? are stacked auth handlers not allowed or something? yes, you can stack multiple auth handlers. the only problem is that, for the PerlAuthenHandler and PerlAuthzHandler the first handler to return an Apache error

Re: Multiple authentication methods

2002-02-13 Thread Geoffrey Young
the only problem is that, for the PerlAuthenHandler and PerlAuthzHandler the first handler to return an Apache error code (anything other than OK, DECLINED, or DONE) terminates the chain. which is generally fine, except when you want to return AUTH_REQUIRED and note_basic_auth_failure().

Re: Multiple authentication methods

2002-02-13 Thread Geoffrey Young
Marcel Weber wrote: Fixed some errors. Here comes the working version: untested I think you might need to iterate through $r-err_headers_out and remove WWW-Authenticate and Proxy-Authenticate after each authentication module runs. say you have an AuthSMB and AythSybase chain. AuthSMB

Re: Multiple authentication methods

2002-02-13 Thread Geoffrey Young
untested I think you might need to iterate through $r-err_headers_out and remove WWW-Authenticate and Proxy-Authenticate after each authentication module runs. say you have an AuthSMB and AythSybase chain. AuthSMB calls note_basic_auth_failure and sets the WWW-Authenticate header,

Re: [Q] Apache::File-new

2002-02-12 Thread Geoffrey Young
Martin Haase-Thomas wrote: Hi, I searched in the book, I searched in the FAQs - no I ask u: Does Apache::File-new start a subrequest? no. it is merely a layer over Perl's file IO methods (Perl_do_open from what I can see). There are some mystical lines in my rewrite_log, which might

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Geoffrey Young
* Despite numerous heroic efforts, HTTP HEAD requests are still screwed! Apache::Registry serves HEAD + Body, and Geoffrey's Apache::HEADRegistry doesn't work with redirects and 404's (I get like two headers and 3 bodies for 404's. Now that's verbose :-)) No real mod_perl problem on that

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Geoffrey Young
Perrin Harkins wrote: I think the problem here is that mod_perl sets the assbackward flag when setting headers via send_cgi_header() (which CGI.pm does). Is this only an issue when using CGI.pm or PerlSendHeader then? I seem to recall having no trouble doing this from a normal handler.

<    1   2   3   4   5   6   7   8   9   >