Anyway, all this started from an attempt to access env. vars from legacy
scripts running under registry. What is the easiest way to get env. var
access without the accompanying performance penalty that mod_perl
documentation talks about?
If you need to have your scripts run unmodified, have
Issac Goldstand wrote:
Right. Could you possibly clarify the difference between SetHandler
perl-script and SetHandler modperl? I'm still not sure I've got the
straight of it yet...
You must be kidding ;) Have you read the sections at the URL posted below?
Stas Bekman wrote:
Sreeji K Das
- Original Message -
From: Stas Bekman [EMAIL PROTECTED]
To: Issac Goldstand [EMAIL PROTECTED]
Issac Goldstand wrote:
Looking at it now, I tend to agree... I just have a vague recollection
of
my first mod_perl 2 handler (Written only 2 weeks ago, though I dabbled
with
the C API
Issac Goldstand wrote:
[...]
(Starting
with mor_perl 2)... I'm toying with the idea of starting the porting
tutorial, but I want to make sure it's written well for clueless people
(which I probably still at least half count as :-)) and with accurate
content.
porting or starting? We already have
Right. Could you possibly clarify the difference between SetHandler
perl-script and SetHandler modperl? I'm still not sure I've got the
straight of it yet...
Issac
Stas Bekman wrote:
Sreeji K Das wrote:
[...]
You need to use 'SetHandler perl-script' for that, see:
Following demonstrates the problem:
$ cat /tmp/test.conf
Perl
@Include = /tmp/test1.conf;
/Perl
Listen 43499
$ cat /tmp/test1.conf
Perl
$Port = 42480;
/Perl
$ httpd -X -f /tmp/test.conf
Syntax error on line 7 of /tmp/test.conf:
Use of uninitialized value in subroutine entry at
I made a simple mod_perl change to the config and when restarting Apache
I got this error:
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:2250
no listening sockets available, shutting down
/usr/local/apache/bin/apachectl: line 87: 16512 Segmentation fault
$HTTPD
I made a simple mod_perl change to the config and when restarting Apache
I got this error:
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:2250
no listening sockets available, shutting down
/usr/local/apache/bin/apachectl: line 87: 16512 Segmentation fault
Hi there,
On Thu, 3 Jul 2003, Dennis Stout wrote:
I made a simple mod_perl change to the config and when restarting Apache
I got this error:
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:2250
no listening sockets available, shutting down
Ged Haywood wrote:
Hi there,
On Thu, 3 Jul 2003, Dennis Stout wrote:
I made a simple mod_perl change to the config and when restarting Apache
I got this error:
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:2250
no listening sockets available, shutting down
-Original Message-
From: Ranga Nathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 1:51 PM
Cc: mod_perl Mailing List
Subject: Re: Apache config problem .. please help
Ged Haywood wrote:
Hi there,
On Thu, 3 Jul 2003, Dennis Stout wrote:
I made a simple mod_perl change
I know this is not of much help, but I have had situations where a badly
terminating process would prevent subsequent processes from using that
port. on windows, i never found a solution other than to reboot. on
solaris 7, i never found a solution other than to wait 8 minutes. I did
some
Hi there,
On Thu, 3 Jul 2003, Ranga Nathan wrote:
In other words there's an Apache still running
The 'top' output is :
[snip]
How can I get a list of ports being used so I can kill the processes?
As I said, there may be more wrong than just what's obvious. It looks
like the obvious
Gedanken wrote:
I know this is not of much help, but I have had situations where a badly
terminating process would prevent subsequent processes from using that
port. on windows, i never found a solution other than to reboot. on
solaris 7, i never found a solution other than to wait 8
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 turning off
On Tue, Feb 19, 2002 at 01:41:44PM -0500, 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
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
Yes, just add a 'Port 80' line to your VirtualHost section.
While many folks assume that this directive is for telling apache
which port to listen on (it's not -- the Listen directive does
that...), it's actually a setting that instructs Apache to use the
named port in any generated urls. (At
At 2:22 PM -0500 2/19/02, Stephen Reppucci wrote:
So, if you virtual host was something like:
Listen 192.168.0.100:8080
VirtualHost 192.168.0.100:8080
ServerName www.foo.com
ServerAlias foo.com
Port 80
...
/VirtualHost
Then (assuming your bigip sends requests for foo.com to
Is is possible to modify the in-memory apache configuration at
runtime? I've seen modules that allow you to parse and modify the
httpd.conf file, but that's not really what I'm looking for. In particular
I want to set the value of ErrorDocument.
Thanks,
Peter Beardsley
Appropriate
On Mon, Feb 04, 2002 at 04:47:27PM -0500, Peter Beardsley wrote:
Is is possible to modify the in-memory apache configuration at
runtime? I've seen modules that allow you to parse and modify the
httpd.conf file, but that's not really what I'm looking for. In particular
I want to set the
-- Rafiq Ismail [EMAIL PROTECTED]
There are some really graphic intensive pages here, however I'm not sure
if Keep alive is good when there's lots of contention for pages. Should
I:
i) disable keep alive?
ii) reduce the keep alive time out ?
iii) up my number for
I know this is a bit off topic, but I could use some immediate advise on
server config?
Got a server which is getting hit really bad.
Have to keep it up. I've got:
P Timeout 300
# Keepalive, better on this server...
KeepAlive On
MaxKeepAliveRequests100
KeepAliveTimeout
Your problem may be a network problem, not Apache/Mod_perl.
Check with your upstream provider and have them do a bandwidth
analysis. Here is why.
I've strobed your network and the return time latency seems to be high.
It would appear that you have about a 28 ms latency overhead in/out of
I know this is a bit off topic, but I could use some immediate advise on
server config?
Got a server which is getting hit really bad.
Have to keep it up. I've got:
P Timeout 300
# Keepalive, better on this server...
KeepAlive On
MaxKeepAliveRequests100
KeepAliveTimeout
Got a server which is getting hit really bad.
Have to keep it up.
You didn't really give us enough information to guess at what your problem
is. You describe one symptom in this message: slow ping times. What else
is wrong? Are pages loading slowly? Failing to load? What applications
are
I agree with the response that you need to do some statistics
gathering to try to accurately isolate the cause of your problems.
I *don't* agree with the other suggestion that was made to UP the
keepalive to 15-20 seconds (the default that apache comes with is 5,
IIRC).
Here's why: Assuming
Rafiq Ismail [EMAIL PROTECTED] writes:
iv) Something else?
Two tier Apache.
Increase shareability.
Read the guide.
--
David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com
Editor-in-chief, The Highway Star http://www.deep-purple.com
All the Purple Family
)
{
$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 have installed Apache 1.3.12 and mod_perl 1.24 on redhat linux 7.0 with Perl5.6 .
But getting the following error while configuring the httpd.conf file . Pl help me.
error
Canot locate loadable object for module Apache::Constants in @INC( @INC contains
How can I get at the value of Apache config directive like AuthUserFile
or Port from within my mod_perl code? I don't want to pass the
values using PerlSetVar because that would require the sysadmin to edit
both the Apache config directive and my PerlSetVar if he makes a change -
too error prone
On Tue, 30 Jan 2001, Fritz Heinrichmeyer wrote:
perl Makefile.PL seem not to honor the APACHE_SRC=.../... switch. I was
asked again and again ...
well, what value did you give APACHE_SRC= exactly? and where is your
mod_perl and apache trees?
I used the FreeBSD-Layout, but somewhere
Hello, we use freebsd-4.2 and i tried to install an apache server with
ssl, php4 and mod_perl compiled statically in
(why? to keep some crufty php scripts going, and to be able to load
embperl on server startup).
My orientation was the excellent mod_perl documentation but ..
perl Makefile.PL
Hi there,
On Tue, 30 Jan 2001, Fritz Heinrichmeyer wrote:
[snip]
perl Makefile.PL seem not to honor the APACHE_SRC=.../... switch.
[snip]
The httpd server wanted to read
/usr/local/etc/apache/etc/apache/httpd.conf.
You could try running 'perl Makefile.PL' from
/usr/local/mod_perl
with
-Original Message-
From: Ben Heuer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 2:35 AM
To: modperl
Subject: Apache config control using Perl?
Hello:
[snip]
2. How can I customise the line that gets added to the
logs/error.log file?
write a PerlLogHandler
On Thu, 24 Aug 2000, Stas Bekman wrote:
Is it just me or has there been discussionof something along the lines of
Apache::Config here before? Where might I accquire it? I could not find it
on CPAN...
It will appear in mod_perl-2.0 for sure, and it's on the todo list of
mod_perl-1.x, so
Is it just me or has there been discussionof something along the lines of
Apache::Config here before? Where might I accquire it? I could not find it
on CPAN...
Is it just me or has there been discussionof something along the lines of
Apache::Config here before? Where might I accquire it? I could not find it
on CPAN...
It will appear in mod_perl-2.0 for sure, and it's on the todo list of
mod_perl-1.x, so if you come up with a patch that implements
it case-insensitively, returning a ref to a hash:
my $ac = new Apache::Config;
my $conf = $ac-readconf($configfile);
print $conf-{servername}; # = "www.mydomain.com";
print $conf-{usecanonicalname}; # = 0 (not undef s
. But I'll
NW] be a happy user to have more spesific Apache related in this regard.
NW]
NW] Yeah, I checked out AppConfig, and I actually emailed the author about
NW] modifying it a little so I could use it as a base class possibly for
NW] Apache::Config. Unfortunately, I haven't heard anything
James-
You and are are saying the same thing, just with different terminology.
I agree completely. :-)
-Nate
James G Smith wrote:
Nathan Wiger [EMAIL PROTECTED] wrote:
UseCanonicalName On# = 1
UseCanonicalName Off # = 0
#UseCanonicalName On# = undef (commented out)
in this regard.
Yeah, I checked out AppConfig, and I actually emailed the author about
modifying it a little so I could use it as a base class possibly for
Apache::Config. Unfortunately, I haven't heard anything back yet.
AppConfig would be a great base class, the only problem is that:
# it handles
Perhaps
3. multi-level hash, i.e.
$conf-{directory}-{'/'}-{sethandler}
This is, afaik, more in-line with what the Perl.../Perl sections do. I
would suggest making it so the output of this module could easily be fed into
the mod_perl configuration engine in the
Nathan Wiger [EMAIL PROTECTED] wrote:
UseCanonicalName On# = 1
UseCanonicalName Off # = 0
#UseCanonicalName On# = undef (commented out)
That way, the logic in your script/module/whatever can set a default
value:
if ( ! defined($conf-{usecanonicalname}) ) {
# not
] UseCanonicalName Off
NW]
NW] And parse it case-insensitively, returning a ref to a hash:
NW]
NW] my $ac = new Apache::Config;
NW] my $conf = $ac-readconf($configfile);
NW] print $conf-{servername}; # = "www.mydomain.com";
NW] print $conf-{usecanonicalname}; # = 0 (not un
:
my $ac = new Apache::Config;
my $conf = $ac-readconf($configfile);
print $conf-{servername}; # = "www.mydomain.com";
print $conf-{usecanonicalname}; # = 0 (not undef so can test
#for defined() still)
I am also fi
Nathan Wiger [EMAIL PROTECTED] wrote:
Hi all-
I've written a module that can parse the Apache httpd.conf config file
(and in fact any Apache-like config file). It will take a set of
directive like:
[snip]
I am also finishing up the ability to parse within contexts, such as
Directory and
James-
You might want to reconsider the usecanonicalname setting. The hash element
should exist if and only if it appears in the configuration file. It should
be defined if and only if it has an argument in the configuration file.
Thus, the following results:
UseCanonicalName
52 matches
Mail list logo