[mp2] Perl Sections, Method handlers

2003-01-27 Thread Randy J. Ray
Any indication of when/if these features will make it to mp2? I've been trying to get my RPC::XML code (specifically the Apache::RPC::Server and Apache::RPC::Status modules) to work under Apache2 and mod_perl2 (thanks to Red Hat for pushing up my timetable on this by installing those). Randy

Re: [mp2] Perl Sections, Method handlers

2003-01-27 Thread Stas Bekman
on this by installing those). I guess Philippe can comment on the Perl sections part, I think it should be in RSN. What about method handlers? What's wrong with them? __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http

Re: [mp2] Perl Sections, Method handlers

2003-01-27 Thread Stas Bekman
[please always reply to the list! thank you!] Randy J. Ray wrote: I guess Philippe can comment on the Perl sections part, I think it should be in RSN. What about method handlers? What's wrong with them? Only that my handlers, both prototyped as ($$), received only the request object (Apache

SOLVED: How to access base environment from Perl sections

2002-08-15 Thread Tom Mornini
that began with EWINGZ_ Perl for ( grep { /^EWINGZ_/ } `env` ) { my ($key) = /^([^=]+)/; push PerlPassEnv,$key; } /Perl Stas: I asked this question almost exactly a year ago and nobody answered it. I asked it yesterday, and again nobody answered it. Perhaps this should be the Perl

Re: SOLVED: How to access base environment from Perl sections

2002-08-15 Thread Stas Bekman
it. Perhaps this should be the Perl Sections section of the guide? After all, the guide already mentions something very similar to this. Funny, but there are too many things in the guide to remember. The new search feature exposes them all, just remember to use it. I was just about to add your tip

Re: SOLVED: How to access base environment from Perl sections

2002-08-15 Thread Tom Mornini
it. I asked it yesterday, and again nobody answered it. Perhaps this should be the Perl Sections section of the guide? After all, the guide already mentions something very similar to this. Funny, but there are too many things in the guide to remember. The new search feature exposes them all

Perl sections and Apache-request-subprocess_env

2002-08-14 Thread Tom Mornini
I'd like to access the original Apache startup environment variables from within Perl> sections. Through experimentation and reading page 498 of the Eagle that I need to use Apache->Request->subprocess_env to access the original environment in order to do this, as %ENV is cleared at in

Perl sections

2002-07-08 Thread Mike Blazer
depend on static/DSO installation of the proxy-httpd with mod_perl (again - to run on server statup only and parse Perl sections only). May be DSO httpd will load mod_perl.so on startup and not copy it to child servers as they don't need it? Or may be there is some way to un-load mod_perl after Perl

Re: Perl sections

2002-07-08 Thread Ilya Martynov
this MB still make server childs much bigger then without mod_perl? Yes, it will. MB [..snip..] MB Or may be there is some way to un-load mod_perl after Perl sections MB processing? If you need Perl sections only to do initial web server configuration and you do not need mod_perl features

Re: Perl sections

2002-07-08 Thread Mike Blazer
MB Or may be there is some way to un-load mod_perl after Perl sections MB processing? If you need Perl sections only to do initial web server configuration and you do not need mod_perl features in runtime then instead of using Perl just write Perl script to generate Apache config file

Re: Perl sections

2002-07-08 Thread Perrin Harkins
Mike Blazer wrote: MB Or may be there is some way to un-load mod_perl after Perl sections MB processing? If you need Perl sections only to do initial web server configuration and you do not need mod_perl features in runtime then instead of using Perl just write Perl script to generate Apache

Re: Perl sections

2002-07-08 Thread Mike Blazer
Perrin Harkins wrote: Mike Blazer wrote: MB Or may be there is some way to un-load mod_perl after Perl sections MB processing? If you need Perl sections only to do initial web server configuration and you do not need mod_perl features in runtime then instead of using Perl just write

Re: Perl sections

2002-07-08 Thread Randal L. Schwartz
Mike == Mike Blazer [EMAIL PROTECTED] writes: Mike Yeah, thanks. But the whole that site has nothing to do without the Mike database :) It almost has no static content. Mike But seems like you are both right. Template would be really safer. While Mike this also breaks the nice concept of

Re: Perl sections

2002-07-08 Thread Randal L. Schwartz
Randal == Randal L Schwartz [EMAIL PROTECTED] writes: Randal using Template Toolkit. Easy'nuff. Lots of common stuff, plus unique Randal stuff. You can use tpage and then there's not even any programming: Randal httpd.conf.pages: httpd.conf.tmpl Randal tpage --define

Re: Perl sections

2002-07-08 Thread Mike Blazer
some efforts to be able to use Perl sections even for the servers that don't need mod_perl processing - by loading and unloading mod_perl or by loading it into some separate thread and killing it after the server startup. It'd be great to have this feature to configure Apache. Thanks, I'll look

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-19 Thread PinkFreud
] To: Salvador Ortiz Garcia [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Problem with Perl sections in httpd.conf, mod_perl 1.26 Mail-Followup-To: Salvador Ortiz Garcia [EMAIL PROTECTED], [EMAIL PROTECTED] User-Agent: Mutt/1.3.25i On Thu, Apr 18, 2002 at 11:15:15PM -0500, Salvador

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-19 Thread Salvador Ortiz Garcia
$vhost{config} and then assign that to $VirtualHost{$host}, it works without a problem. The issuse is definitely with the variable being read in from an external file. Strange, no? Yes, weird. I'm hunting any remaining bugs related to Perl Sections. Can you please test the attached patch vs

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-19 Thread PinkFreud
/linuxhelp.mirkwood.net/perl// Hope that helps. On Fri, Apr 19, 2002 at 03:37:35PM -0500, Salvador Ortiz Garcia babbled thus: Subject: Re: Problem with Perl sections in httpd.conf, mod_perl 1.26 From: Salvador Ortiz Garcia [EMAIL PROTECTED] To: PinkFreud [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] X

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-18 Thread PinkFreud
On Thu, Apr 18, 2002 at 11:15:15PM -0500, Salvador Ortiz Garcia babbled thus: Subject: Re: Problem with Perl sections in httpd.conf, mod_perl 1.26 From: Salvador Ortiz Garcia [EMAIL PROTECTED] To: PinkFreud [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] X-Mailer: Ximian Evolution 1.0.3 Date: 18

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-16 Thread Michael Schout
On 16 Apr 2002, PinkFreud wrote: I have a rather odd problem, one which I can only assume is a bug somewhere, due to how bizarre it is. I am attmempting to generate virtual host configs via mod_perl, using Perl sections in httpd.conf. Not all hosts will be using a /perl Alias, though, so

Re: Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-16 Thread PinkFreud
, Apr 16, 2002 at 02:53:35PM -0500, Michael Schout babbled thus: Date: Tue, 16 Apr 2002 14:53:35 -0500 (CDT) From: Michael Schout [EMAIL PROTECTED] To: PinkFreud [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Problem with Perl sections in httpd.conf, mod_perl 1.26 On 16 Apr 2002

Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-15 Thread PinkFreud
I have a rather odd problem, one which I can only assume is a bug somewhere, due to how bizarre it is. I am attmempting to generate virtual host configs via mod_perl, using Perl sections in httpd.conf. Not all hosts will be using a /perl Alias, though, so I'm reading in an external config

RE: Perl Sections: command_rec for directive `ISA' not found!

2002-01-31 Thread Jonathan Hilgeman
I previously posted the below, but after experiencing this same problem after upgrading MySQL, I did some research and noticed that I had to re-compile/re-install the Msql-Mysql-modules-1.2216.tar.gz package/module when the libmysqlclient.so file got updated. For instance, I first installed the

Pushing Handlers from Perl sections

2001-12-11 Thread Issac Goldstand
Can I _upsh_ handlers from within Perl sections? If so, how? Issac -- Internet is a wonderful mechanism for making a fool of yourself in front of a very large audience. --Anonymous Moving the mouse won't get you into trouble... Clicking it might. --Anonymous PGP Key 0xE0FA561B

Perl sections from within a module

2001-11-22 Thread Issac Goldstand
Is there a way of doing configuration work (the equivalent of Perl sections) from within modules? I ask both for subroutines which are called at server startup (from mod_perl_start.pl) and from other handlers... Thanks in advance, Issac Internet is a wonderful mechanism for making a fool

Re: Perl sections from within a module

2001-11-22 Thread Stas Bekman
Issac Goldstand wrote: Is there a way of doing configuration work (the equivalent of Perl sections) from within modules? I ask both for subroutines which are called at server startup (from mod_perl_start.pl) and from other handlers... Yup, just modify things in Apache::ReadConfig package

perl sections

2001-11-02 Thread matt
Hello list, I am running some mod_perl/apache sites. So far we have 2 disparate servers, (both running identical software) hosting about 10 sites each. I have managed to create a universal httpd.conf using perl sections, a universal config file and a host dependant config file. In doing so

Re: Problem with Directory in Perl sections

2001-11-01 Thread Richard L. Goerwitz III
James Stalker wrote: Does anyone here have Directory working in Perl sections in mod_perl 1.25 or above? It's funny that you mention this because, now that I think about it, I always set up directory and location blocks inside virtual host blocks, e.g.: $VirtualHost{_default_:80

Re: Problem with Directory in Perl sections

2001-10-31 Thread James Stalker
OK, looks like no-one has any ideas - maybe I should rephrase the question. Does anyone here have Directory working in Perl sections in mod_perl 1.25 or above? Thanks, Jim On Mon, Oct 29, 2001 at 08:58:24AM +, James Stalker wrote: Hi, I have hit a problem with the latest couple

Problem with Directory in Perl sections

2001-10-29 Thread James Stalker
Hi, I have hit a problem with the latest couple of versions of mod_perl, and I wondered if anyone might know a solution. We're using Apache 1.3.22 with mod_perl 1.26, and there appears to be a problem with the Directory directive in perl sections... e.g. $Directory{$DocumentRoot

Re: Odd problem with Perl sections

2001-10-25 Thread Carolyn
On Wed, Oct 24, 2001 at 03:01:25AM -0700, Tom Mornini wrote: in httpd.conf: 1 Perl 2$ErrorLog = |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR; 3 /Perl 4 ErrorLog |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR Lines 1-3 and 4 should do the same

Re: Odd problem with Perl sections

2001-10-25 Thread Tom Mornini
On Wednesday, October 24, 2001, at 06:38 PM, Carolyn wrote: On Wed, Oct 24, 2001 at 03:01:25AM -0700, Tom Mornini wrote: in httpd.conf: 1 Perl 2$ErrorLog = |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR; 3 /Perl 4 ErrorLog

Re: Odd problem with Perl sections

2001-10-25 Thread Carolyn Hicks
On Wed, Oct 24, 2001 at 06:52:13PM -0700, Tom Mornini wrote: I don't believe that single quotes -vs- double quotes would make a difference. Both things end up a single scalar, and I seriously doubt that Apache can tell the difference... well, I meant single *and* double quotes - so the value

Re: Odd problem with Perl sections

2001-10-25 Thread Tom Mornini
On Wednesday, October 24, 2001, at 07:25 PM, Carolyn Hicks wrote: On Wed, Oct 24, 2001 at 06:52:13PM -0700, Tom Mornini wrote: I don't believe that single quotes -vs- double quotes would make a difference. Both things end up a single scalar, and I seriously doubt that Apache can tell the

Re: Odd problem with Perl sections

2001-10-25 Thread Tom Mornini
On Wednesday, October 24, 2001, at 11:38 AM, Scott Lanning wrote: On Wed, 24 Oct 2001, Tom Mornini wrote: 1 Perl 2$ErrorLog = |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR; 3 /Perl 4 ErrorLog |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR [snip]

Odd problem with Perl sections

2001-10-24 Thread Tom Mornini
I'm having a problem with Perl sections that I'm pretty sure shows a bug of some sort in the code that handles this. I've looked around a bit and can't find any Perl that is responsible for generating the error show below, so I figured asking the list was the best next step. in httpd.conf: 1

Re: Odd problem with Perl sections

2001-10-24 Thread Scott Lanning
On Wed, 24 Oct 2001, Tom Mornini wrote: 1 Perl 2$ErrorLog = |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR; 3 /Perl 4 ErrorLog |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR [snip] When I use the Perl section (which I need to allow the path to

Perl Sections: command_rec for directive `ISA' not found!

2001-05-09 Thread Jonathan Hilgeman
Seeing that nobody answered your question or posted the answer, I had to overcome this same problem. The problem was the Perl libraries that were installed (or not installed). You need to reinstall / install the Bundle::DBI package and the correct modules for it. In my case, I was trying to

RE: Perl Sections in Apache Config

2001-05-08 Thread Jonathan Hilgeman
) { $VirtualHost = . } /Perl Can someone give me a good example of how to do that? Thanks! Jonathan -Original Message- From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 5:36 PM To: '[EMAIL PROTECTED]' Subject: Perl Sections in Apache

Re: Perl Sections in Apache Config

2001-05-08 Thread Philippe M \. Chiasson
On Mon, May 07, 2001 at 05:35:57PM -0700, Jonathan Hilgeman wrote: Hi, I've been trying to do this for some time but can't figure out how. Basically I want a setup where anyone at www.UserName.domain.com or UserName.domain.com will have their DocumentRoot set to /www/httpd/html/UserName. So

Re: Perl Sections in Apache Config

2001-05-08 Thread will trillich
On Mon, May 07, 2001 at 09:32:23PM -0400, Philippe M . Chiasson wrote: On Mon, May 07, 2001 at 05:35:57PM -0700, Jonathan Hilgeman wrote: I've been trying to do this for some time but can't figure out how. VirtualHost 111.111.111.111 UseCanonicalName Off Perl

Perl Sections in Apache Config

2001-05-07 Thread Jonathan Hilgeman
Hi, I've been trying to do this for some time but can't figure out how. Basically I want a setup where anyone at www.UserName.domain.com or UserName.domain.com will have their DocumentRoot set to /www/httpd/html/UserName. So far I've tried this: VirtualHost 111.111.111.111

Re: Perl Sections in Apache Config

2001-05-07 Thread Brian Burke
: Monday, May 07, 2001 8:35 PM Subject: Perl Sections in Apache Config Hi, I've been trying to do this for some time but can't figure out how. Basically I want a setup where anyone at www.UserName.domain.com or UserName.domain.com will have their DocumentRoot set to /www/httpd/html/UserName. So

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"; $RewriteRu

Perl Sections: command_rec for directive `ISA' not found!

2001-03-22 Thread Renaud Waldura
I recently upgraded a system to FreeBSD 4.2, Apache 1.3.19, mod_perl 1.25. We use Perl sections to configure virtual hosts from a database; the vhosts data is stored in a table, we select it with DBI and configure Apache from within a Perl section. This configuration process now fails

New CPAN module to assist with Perl Sections

2001-03-16 Thread Kevin . Ruscoe
All I have just uploaded Tie::DxHash v0.91 to CPAN. Tie::DxHash preserves insertion order and allows duplicate keys. What on earth for?? Well, this helps people who are using Perl Sections (particularly with mod_rewrite) to construct more complex rules. The module's synopsis illustrates

Perl sections / Location problems

2001-02-14 Thread Michael J Schout
I've been scratching my head on this for quite a while and I cant seem to figure it out. I have a very stripped down configuration, which only contains the following Perl section: Perl use Apache::Status; $Location{"^/perl-status-1\$"} = { SetHandler = 'perl-script', PerlHandler =

Re: problems with %Location inside perl-sections

2001-02-13 Thread Stas Bekman
On Mon, 12 Feb 2001, Marc Lehmann wrote: On Mon, Feb 12, 2001 at 08:48:57AM +0800, Stas Bekman [EMAIL PROTECTED] wrote: Looks like Apache doing stat() calls problem. Try to run the request under strace(1) or truss(1). See:

problems with %Location inside perl-sections

2001-02-11 Thread Marc Lehmann
I have two problems related to setting Location directives from within perl sections that I don't understand (I've looked at the mod_perl guide and the archive but a RTFM is certainly welcome ;) First problem: Location works on url space only while $Location requires existing directories (full

Re: problems with %Location inside perl-sections

2001-02-11 Thread Stas Bekman
On Sun, 11 Feb 2001, Marc Lehmann wrote: I have two problems related to setting Location directives from within perl sections that I don't understand (I've looked at the mod_perl guide and the archive but a RTFM is certainly welcome ;) First problem: Location works on url space only while

Re: problems with %Location inside perl-sections

2001-02-11 Thread Marc Lehmann
On Mon, Feb 12, 2001 at 08:48:57AM +0800, Stas Bekman [EMAIL PROTECTED] wrote: Looks like Apache doing stat() calls problem. Try to run the request under strace(1) or truss(1). See: http://perl.apache.org/guide/performance.html#Reducing_the_Number_of_stat_Ca this is with perl-status: [pid

Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
Yo, Has anyone successfully built a fully perl conf file with multiple virtual hosts on the same IP? I'm giving it my best, but just can't quite get it to work. I'm stuck on aliases. The Eagle book and the mod_perl guide have both been of great help getting this far, but I can't find an

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread G.W. Haywood
Hi there, On Wed, 7 Feb 2001, Veatch, David W wrote: Has anyone successfully built a fully perl conf file with multiple virtual hosts on the same IP? Dunno if it will work for you in those circumstances, but have you looked at mod_macro? I used it last year and it was fine for an ordinary

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
I haven't no, but I will. I'm doing this at home in preparation for implementing it at work, where I hesitate to throw yet another module into the mix (we already have a pretty rich set of compile time modules in there). Thanks! :) From: G.W. Haywood [EMAIL PROTECTED] Dunno if it will work

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Jason Terry
I use this code to pull my domains from a VERY simple mySQL db - Original Message - From: "G.W. Haywood" [EMAIL PROTECTED] To: "Veatch, David W" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 10:04 AM Subject: Re: Perl Sections, NameVirt

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
Alias example could be added to the docs somewhere? -Original Message- From: Jason Terry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 11:53 AM To: G.W. Haywood; Veatch, David W Cc: [EMAIL PROTECTED] Subject: Re: Perl Sections, NameVirtualHost, and Aliases I use

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Benjamin Trott
I think that this: PerlSetVar = { Auth_DBI_data_source = 'dbi:Pg:dbname=reckdb', Auth_DBI_username = 'dvicci', Auth_DBI_pwd_table = 'user_profile', Auth_DBI_uid_field = 'user_username', Auth_DBI_pwd_field = 'user_password', Auth_DBI_pwd_whereclause = '"user_usertype0"',

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Benjamin Trott
However, now I'm getting this: Perl: PerlSetVar takes two arguments, Perl config var and value. I don't think PerlSetVar likes this line: [ Auth_DBI_pwd_whereclause = '"user_usertype0"' ], You could try taking out the quotes and see if that helps, cause it did for me (though I didn't

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
07, 2001 12:38 PM To: Veatch, David W Cc: [EMAIL PROTECTED] Subject: Re: Perl Sections, NameVirtualHost, and Aliases However, now I'm getting this: Perl: PerlSetVar takes two arguments, Perl config var and value. I don't think PerlSetVar likes this line

RE: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Veatch, David W
Got it. So far, everything appears to be working like a dream. Here's the changes I made: # OLD and BREAKY Location = { '/' = { SetHandler = 'perl-script', PerlInitHandler = 'Apache::StatINC',

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Dave Baker
Has anyone successfully built a fully perl conf file with multiple virtual hosts on the same IP? I'm giving it my best, but just can't quite get it to work. I'm stuck on aliases. The Eagle book and the mod_perl guide have both been of great help getting this far, but I can't find an

Re: Perl Sections, NameVirtualHost, and Aliases

2001-02-07 Thread Wade Burgett
This is working for me. I do some aliasing of mod_perl directories outside of the perl section for stuff that all my hosts need to share so my httpd.conf is not all perl, but I do have some aliasing going on. There's some stuff there to pull my records out of a database but basically

Localizing Perl sections to VHosts

2000-12-22 Thread Todd Finney
I'm trying to move my VHost-specific libraries into more logical directories (for me). I have a number of them, and I'd rather not just use them all in my startup.pl - mostly because of concern over name collisions (Site1::connect_to_db(), Site2::connect_to_db()). If I use this in a

Re: Localizing Perl sections to VHosts

2000-12-22 Thread Stas Bekman
On Fri, 22 Dec 2000, Todd Finney wrote: I'm trying to move my VHost-specific libraries into more logical directories (for me). I have a number of them, and I'd rather not just use them all in my startup.pl - mostly because of concern over name collisions (Site1::connect_to_db(),

Files .. in virtualhosts in perl sections

2000-11-16 Thread Tom Lancaster
Anyone have any experience doing Files sections inside of perlsections virtualhosts. I can't see anything in the docs about this. Just wanted to ask before I start experimenting, as I don't have the first clue about how this syntax might work. Thanks, -- Tom Lancaster Red Hat, Inc.

Re: Files .. in virtualhosts in perl sections

2000-11-16 Thread Benjamin Trott
Anyone have any experience doing Files sections inside of perlsections virtualhosts. I can't see anything in the docs about this. Just wanted to ask before I start experimenting, as I don't have the first clue about how this syntax might work. Assuming I'm not missing something subtle about

Bizarre Perl Sections Problem

2000-10-21 Thread Benjamin Trott
I'm having a really strange (in my opinion) problem with Perl sections and using the Apache::ReadConfig namespace explicitly (qualifying variables, like %Apache::ReadConfig::Location). Here's what I'm doing: I have a small library of routines; I'm using PerlRequire to load that library. In a Perl

Apache Perl Sections Woes

2000-10-06 Thread Carlos Ramirez
I'm trying to configure my Apache config file using Perl Sections. I'm stuck in trying to populate a Directory directive with a bunch of "Allow from"s like so: ## Get my "allow froms" from an existing list of ip addresses my $accessfile = '/usr/local/etc/apache_1.3.12/con

Problems with Perl sections.

2000-07-01 Thread Michael J Schout
I'm having some issues with Perl sections. Basically what I have is a setup like this: httpd.conf: Perl my %handlers = ( '/foo' = { HANDLER = 'GKG::Foo', FILTER = 1 }, '/bar/foo' = { HANDLER = 'GKG::FooBar' } ); for my $i (keys %handlers) { my %conf

Re: Problems with Perl sections.

2000-07-01 Thread Michael J Schout
Ok I think I might have figured this one out. If I treat the keys of %Location as regexps I sseem to get the desired results :). e.g.: '^/foo$', '^/bar/foo$' Maybe this shold be documented in the guide better? Mike

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

Re: backticks in perl sections?

2000-05-30 Thread Honza Pazdziora
On Tue, May 30, 2000 at 11:35:27AM +0100, Kees Vonk 7249 24549 wrote: 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

Re: backticks in perl sections?

2000-05-30 Thread Stas Bekman
On Tue, 30 May 2000, Honza Pazdziora wrote: On Tue, May 30, 2000 at 11:35:27AM +0100, Kees Vonk 7249 24549 wrote: 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

RE: how do I use perl sections

2000-05-05 Thread Benedict Lofstedt
Eric Cholet writes: but you're not following my example quoted above. @ScriptAlias is a list of aliases. Each alias is a _reference_ to a two-element array. I got the following to work after stopping/restarting the server: Perl my @cgi_users = qw(xx yy); foreach (@cgi_users) {

Perl sections and custom configuration directives

2000-05-05 Thread Matt Sergeant
I have someone on the AxKit list asking if there's a way to do configuration outside of .htaccess files. I figure rather than writing some new code to do this, Perl sections could be used. Will this work with custom directives, so basically could I do: Perl @AxAddStyleMap = ( [ 'text

Re: Perl sections and custom configuration directives

2000-05-05 Thread Matt Sergeant
Answering myself: It works. Damn this product (mod_perl) is cool! On Fri, 5 May 2000, Matt Sergeant wrote: I have someone on the AxKit list asking if there's a way to do configuration outside of .htaccess files. I figure rather than writing some new code to do this, Perl sections could

Re: Perl sections and custom configuration directives

2000-05-05 Thread Stas Bekman
some new code to do this, Perl sections could be used. Will this work with custom directives, so basically could I do: Perl @AxAddStyleMap = ( [ 'text/xsl' = 'Apache::AxKit::Language::XSLT' ], ... ); /Perl Even a cleaner solution, especially if you distribute some

Re: Perl sections and custom configuration directives

2000-05-05 Thread Matt Sergeant
of .htaccess files. I figure rather than writing some new code to do this, Perl sections could be used. Will this work with custom directives, so basically could I do: Perl @AxAddStyleMap = ( [ 'text/xsl' = 'Apache::AxKit::Language::XSLT' ], ... ); /Perl Even

Re: Perl sections and custom configuration directives

2000-05-05 Thread brian moseley
On Fri, 5 May 2000, Matt Sergeant wrote: Actually the idea comes from setting up the style map based on an external XML site map, which would do things similar to apache's Files and Location directives, and then put them into the appropriate sections in Apache::ReadConfig. It's not

Re: Perl sections and custom configuration directives

2000-05-05 Thread Matt Sergeant
On Fri, 5 May 2000, brian moseley wrote: On Fri, 5 May 2000, Matt Sergeant wrote: Actually the idea comes from setting up the style map based on an external XML site map, which would do things similar to apache's Files and Location directives, and then put them into the appropriate

Re: Perl sections and custom configuration directives

2000-05-05 Thread brian moseley
On Fri, 5 May 2000, Matt Sergeant wrote: Hmm... OK maybe a rethink is in order. Perhaps something like this: AxConfigReader MyModule And AxKit defaults to its internal module which reads the Ax* configuration directives directly? You could even inherit from the internal config reader

RE: how do I use perl sections

2000-05-04 Thread Benedict Lofstedt
Eric, push @ScriptAlias, [ "/cgi-$_", "/users/$_/cgi-bin" ]; Where can I find better info than given in http://perl.apache.org/src/mod_perl.html#PERL_SECTIONS ? http://www.modperl.com/book/chapters/ch8.html#Configuring_Apache_with_Perl See the paragraph: "Directive is

RE: how do I use perl sections

2000-05-04 Thread Eric Cholet
-Message d'origine- De: Benedict Lofstedt [SMTP:[EMAIL PROTECTED]] Date: jeudi 4 mai 2000 15:38 À:Eric Cholet Cc: [EMAIL PROTECTED] Objet:RE: how do I use perl sections Eric, push @ScriptAlias, [ "/cgi-$_", "/users/$_/cgi-bin" ];

how do I use perl sections

2000-05-03 Thread Benedict Lofstedt
I would like to make a list of ScriptAliases like this ScriptAlias "/cgi-xx" "/users/xx/cgi-bin/" ScriptAlias "/cgi-yy" "/users/yy/cgi-bin/" and did this: Perl my $cgi_users = qw(xx yy); for ($cgi_users) { push @ScriptAlias, "/cgi-$_", "/users/$_/cgi-bin"; } /Perl but it did not work. What

RE: how do I use perl sections

2000-05-03 Thread Eric Cholet
I would like to make a list of ScriptAliases like this ScriptAlias "/cgi-xx" "/users/xx/cgi-bin/" ScriptAlias "/cgi-yy" "/users/yy/cgi-bin/" and did this: Perl my $cgi_users = qw(xx yy); for ($cgi_users) { push @ScriptAlias, "/cgi-$_", "/users/$_/cgi-bin"; } /Perl but it did

Two problems with Perl sections...

2000-05-03 Thread Robert S. Thau
Hi. I'm having two problems with Perl sections --- one resulting in a server coredump, and the other just odd. My test configuration is Apache/1.3.12 and mod_perl_1.23 built from distributed sources with: perl Makefile.PL DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 PERL_TRACE=1 APACHE_PREFIX=/opt

Configuring Apache with PERL sections - how to do custom access log?

2000-05-03 Thread James Olsen
Hello everyone, I have quite a few virtual hosts on my Apache server. I'm trying to implement their configuration in PERL sections instead of the current method bunch of VirtualHost directives. I use the "combined" transfer log, previously defined like this: TransferLog

Re: Perl Sections and Virtual Host

2000-04-20 Thread Doug MacEachern
i've only skimmed this thread, but haven't seen any mention of chapter 8 online at http://modperl.com/ which covers Perl sections in detail.

Re: Perl Sections and Virtual Host

2000-04-19 Thread Pierre-Yves BONNETAIN
my $realname = 'http://www.main.org'; my %vnames = ( 'sec.ondary.com' = 'second', 'third.dom.com' = 'third' ); ^^^ foreach (keys %vnames) { ^^^ $VirtualHost{'192.168.1.2:80'} = { ServerName = $_, RedirectPermanent = ( ['/',

Perl Sections and Virtual Host

2000-04-18 Thread Pierre-Yves BONNETAIN
Hello modperlers, I'm currently banging my head on the walls trying to use Perl sections, in the httpd.conf file, to configure virtual hosts. The idea is to redirect lots of 'secondary' domains to URLs on our 'main' website. Let's say the main website is www.main.org, and secondary

No pid while processing Perl sections?

1999-12-07 Thread Matt Sergeant
I'm stumped. I've been trying out Sybase's ASA on Linux along with DBD::ASAny. Works fine from the command line and from within handlers, but when I connect from a Perl section it says (paraphrased - this is at a clients): Disconnecting shared memory client: no process id Or something

Re: Perl not allowed here? (Perl sections)

1999-11-25 Thread Ken Williams
;Perl not allowed here" when I try to use Perl sections in an .htaccess file under mod_perl 1.21. The same setup works fine under mod_perl 1.18 (my frontend server). The .htaccess is simple, it's just got a Perl section that's about 10 lines long, not nested inside anything else. I'

Perl not allowed here? (Perl sections)

1999-11-24 Thread Ken Williams
Hi, I'm getting the error "Perl not allowed here" when I try to use Perl sections in an .htaccess file under mod_perl 1.21. The same setup works fine under mod_perl 1.18 (my frontend server). The .htaccess is simple, it's just got a Perl section that's about 10 lines long, not nes