Re: How to reference %Location outside of Perl.../Perl?

2011-02-28 Thread Jeff Nokes
I've seen it done where you can make a home-grown module that has a second package declaration for Apache[2]::ReadConfig. Something like ... ... in httpd.conf ... Perl use Some::Module; Some::Module::my_custom_config(); /Perl ... in Module.pm ... package Some::Module; sub

Re: Why people not using mod_perl

2009-09-17 Thread Jeff Nokes
...@gmail.com To: Jeff Nokes jeff_no...@yahoo.com Cc: mod_perl list modperl@perl.apache.org Sent: Thursday, September 17, 2009 4:52:38 AM Subject: Re: Why people not using mod_perl Interesting. I did not even know about that #2 guy. What sort of hardware and OS are you running there? Igor On Thu

Re: Why people not using mod_perl

2009-09-16 Thread Jeff Nokes
Doesn't Amazon run mod_perl/Mason? BTW, I agree with most of your points (would debate #4,5). I may substitute the phrase More convenient for Easier in #3. I would also add ... #7) How many engineers are available to hire that know or want to work with said technology? I built a great

Re: Why people not using mod_perl

2009-09-16 Thread Jeff Nokes
, the #2 API client (in listings) was perl-based, and using it. Cheers, - Jeff From: Igor Chudov ichu...@gmail.com To: Jeff Nokes jeff_no...@yahoo.com Cc: Brad Van Sickle bvs7...@gmail.com; mod_perl list modperl@perl.apache.org Sent: Wednesday, September 16, 2009 8

Re: framework for modperl applications

2008-07-17 Thread Jeff Nokes
I like Mason a lot (HTML::Mason). We use Mason mostly for it's component execution chain, attributes, subexec, and a few other features. Also, we don't use Mason's template features at all, we choose to use HTML::Template for that. My $0.02, - Jeff - Original Message From: [EMAIL

Re: SQLite and multiple process behavior

2007-06-20 Thread Jeff Nokes
a thought, Jeff Original Message Subject: Re:SQLite and multiple process behavior From: Perrin Harkins [EMAIL PROTECTED] To: Jeff Nokes [EMAIL PROTECTED] CC: modperl@perl.apache.org Date: 18 June 2007 20:42:28

Re: SQLite and multiple process behavior

2007-06-18 Thread Jeff Nokes
Thanks for replying Perrin, see my replies inline below. - Jeff - Original Message From: Perrin Harkins [EMAIL PROTECTED] To: Jeff Nokes [EMAIL PROTECTED] Cc: modperl@perl.apache.org Sent: Friday, June 15, 2007 7:26:09 PM Subject: Re: SQLite and multiple process behavior I see two

Re: SQLite and multiple process behavior

2007-06-18 Thread Jeff Nokes
- Original Message From: Nikolay Ananiev [EMAIL PROTECTED] To: modperl@perl.apache.org Sent: Monday, June 18, 2007 12:27:56 AM Subject: Re: SQLite and multiple process behavior What happens if you pass the AutoCommit = 1 option to DBI's connect method? I have been running with

Re: Quick Question

2007-05-31 Thread Jeff Nokes
$r-hostname() = HTTP_HOST apache ENV = Equivalent to what comes in on the client Host header. I too serve different templates based on incoming domain, and $r-hostname gets me the FQDN. I'm on apache 1.3.X and mod_perl 1.29. - Jeff - Original Message From: Alexander Burrows

Re: Using Persistent Data Structures in Perl

2007-04-21 Thread Jeff Nokes
Or FreezeThaw: http://search.cpan.org/author/ILYAZ/FreezeThaw-0.43/FreezeThaw.pm - Original Message From: Arshavir Grigorian [EMAIL PROTECTED] To: Deepak Mallya [EMAIL PROTECTED] Cc: modperl@perl.apache.org Sent: Saturday, April 21, 2007 3:24:39 PM Subject: Re: Using Persistent Data

Re: UTF-8 encoding problems under Apache 2 with mod_perl 2.

2007-04-04 Thread Jeff Nokes
We also do everything (not source code, which is in ISO-8859-1, only content) in UTF-8 where I work, and we support many different languages. We never use any apache configurations or make any explicit reference to the OS locale being used. As of Perl 5.8*, internally Perl assumes UTF-8 for

Re: UTF-8 encoding problems under Apache 2 with mod_perl 2.

2007-04-04 Thread Jeff Nokes
Well, We completely separate out our content, from our presentation templates, from our source. We use HTML::Mason mostly as a layer of abstraction to mod_perl's raw API, and then use HTML::Template to munge our content with our templates in pre-release batch mode and/or dynamically. We keep

Re: mystery caching problem

2006-10-02 Thread Jeff Nokes
I'm not sure if this is your problem, but we had a similar issue awhile back. About a year-and-a-half ago, there was an incremental release of the squid proxy server that had a major bug in it. I can't remember the details exactly, but I believe it had something to do with the fact that squid

Re: passing an argument to startup.pl

2006-09-14 Thread Jeff Nokes
I guess you could try to do something dynamic with Perl blocks in your httpd.conf ...Perl open(NEW_MODULE, 'Startup.pm'); print NEW_MODULE ( "package Startup;\n" . "our $arg_1 = 'dv1'; );/Perlthen within startup.pl you do ...use Startup; (or require "Startup.pm")if($Startup::arg_1 eq 'dv1') {

Re: Using switch in Perl section.

2006-08-21 Thread Jeff Nokes
Hi, We have about 30 servers in our productin envrionment, and growing too. We use blocks in our configs, but we just use standard conditionals to do any switch/case decision trees (which is what Switch is doing under the hood anyway [http://faq.perl.org/perlfaq7.html#How_do_I_create_a_sw].

Troubles installing MP2 on Debian 3.1 (Sarge)

2006-07-07 Thread Jeff Nokes
Hi, I have a new system running Debian Linux 3.1 (Sarge) and have been attempting to install mod_perl 2.0.2 with Apache 2.2.2 using the recommended directions located at http://perl.apache.org/docs/2.0/user/install/install.html ... and I keep getting compilation errors. It executes the

Re: apache url mapping question

2006-05-17 Thread Jeff Nokes
How about something like the following? # mod_perl 1.29 Configuration: # Set up apache so that all pages served with a .pl or .pm extension will be executed # via the mod_perl package which is statically linked in with Apache. FilesMatch \.(pl|pm)$ SetHandler

Can one use mod_proxy post the Authentication phase in apache?

2006-03-23 Thread Jeff Nokes
Hi, I'm trying to assist another dept. at my work, to provide a reverse-proxy service with our apache based mod_perl application. This other dept. wanted to leverage our custom PerlAuthenHandler for security reasons, yet they desire just a pass-thru proxy request to their application tier on