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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
]
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
$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
/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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
)
{
$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
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
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
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
: 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
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
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
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
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 =
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:
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
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
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
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
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
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
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
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
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"',
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
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
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',
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
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
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
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(),
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.
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
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
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
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
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
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
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
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
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) {
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
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
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
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
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
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
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
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
-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" ];
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
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
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
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
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.
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 = ( ['/',
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
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
;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'
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
93 matches
Mail list logo