Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-15 Thread Stas Bekman
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 a

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-15 Thread Issac Goldstand
- 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

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-15 Thread Stas Bekman
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 wrote:

Re: Apache config problem .. please help

2003-07-15 Thread Stas Bekman
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 Per

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-14 Thread Issac Goldstand
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: > http://perl.apache.

[MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-09 Thread Sreeji K Das
Following demonstrates the problem: $ cat /tmp/test.conf @Include = "/tmp/test1.conf"; Listen 43499 $ cat /tmp/test1.conf $Port = 42480; $ httpd -X -f /tmp/test.conf Syntax error on line 7 of /tmp/test.conf: Use of uninitialized value in subroutine entry at /tmp/CVS/virgin/modperl-2.0/blib

Re: Apache config problem .. please help

2003-07-03 Thread Ranga Nathan
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 minutes.

Re: Apache config problem .. please help

2003-07-03 Thread Ged Haywood
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

Re: Apache config problem .. please help

2003-07-03 Thread Gedanken
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 rea

RE: Apache config problem .. please help

2003-07-03 Thread Hauck, William B.
he/bin/apachectl start good luck, bill -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

Re: Apache config problem .. please help

2003-07-03 Thread Ranga Nathan
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 /usr/lo

Re: Apache config problem .. please help

2003-07-03 Thread Ged Haywood
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 > > /usr/l

Re: Apache config problem .. please help

2003-07-03 Thread Dennis Stout
> 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

Apache config problem .. please help

2003-07-03 Thread Ranga Nathan
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 $A

Re: [OT] Apache Config Problem

2002-02-19 Thread Robert Landrum
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 > > ServerName www.foo.com > ServerAlias foo.com > Port 80 > ... > > >Then (assuming your bigip sends requests for foo.com to >192.168.0.100:8080) generated urls will be

Re: [OT] Apache Config Problem

2002-02-19 Thread Stephen Reppucci
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 l

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

Re: [OT] Apache Config Problem

2002-02-19 Thread Brian Reichert
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 red

[OT] Apache Config Problem

2002-02-19 Thread Robert Landrum
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 UseCononicalName

Re: modifying apache config at runtime

2002-02-04 Thread Paul Lindner
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 th

modifying apache config at runtime

2002-02-04 Thread Peter Beardsley
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 Solutions

Re: Off-topic - Apache Config - Load crises

2001-10-12 Thread Steven Lembark
-- 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 nu

Re: Off-topic - Apache Config - Load crises

2001-10-11 Thread Dave Hodgkinson
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 T

Re: Off-topic - Apache Config - Load crises

2001-10-11 Thread Stephen Reppucci
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 tha

Re: Off-topic - Apache Config - Load crises

2001-10-11 Thread Perrin Harkins
> 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

Re: Off-topic - Apache Config - Load crises

2001-10-11 Thread Robert Landrum
>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 >KeepAli

Re: Off-topic - Apache Config - Load crises

2001-10-11 Thread Jim Cox
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 yo

Off-topic - Apache Config - Load crises

2001-10-11 Thread Rafiq Ismail
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

Re: 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. > > > > UseCanonicalName Off > > > > if($HTTP_HOST =~ s/(?:www\

Re: 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.

RE: Sections in Apache Config

2001-05-08 Thread Jonathan Hilgeman
$UserName) { $VirtualHost = . } 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: Sections i

Re: Sections in Apache Config

2001-05-07 Thread Brian Burke
lt;[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 8:35 PM Subject: 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 Do

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: UseCanonicalName Off

apache config error

2001-03-28 Thread swapnau
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 /usr/loacl/lib/perl5/5.

Re: Reading Apache config info from mod_perl

2001-03-26 Thread Jason Leidigh
This depend on the info you want as certain tables of info have different methods.  For the port you can use:   my $port = $r->get_server_port;   I'm not sure you can get the actaul pass file used for the protected dir howevere you can recover the authentication result and the pass used to ge

Reading Apache config info from mod_perl

2001-03-21 Thread starfire
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

Re: Hard times with apache config

2001-01-31 Thread Doug MacEachern
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 som

Re: Hard times with apache config

2001-01-30 Thread G.W. Haywood
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

Hard times with apache config

2001-01-30 Thread Fritz Heinrichmeyer
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 se

RE: Apache config control using Perl?

2000-11-29 Thread Geoffrey Young
> -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 >

Apache config control using Perl?

2000-11-29 Thread Ben Heuer
Hello: I wonder if I need to do it using modperl, or can I do it in Apache's own error logging. What I need is to log errors that occur with my website (including access stuff, database errors - everything) that are seen by an average user. I would appreciate if someone could help me with this:

Re: Apache::Config

2000-08-30 Thread Doug MacEachern
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

Re: Apache::Config

2000-08-24 Thread Stas Bekman
> 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 t

Apache::Config

2000-08-24 Thread Jerrad Pierce
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...

Re: Apache::Config module

2000-08-15 Thread Doug MacEachern
; UseCanonicalName Off > > And parse 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"; >

Re: Apache::Config module

2000-06-30 Thread Hasanuddin Tamir
o parse various kinds of config file. 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

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
have more spesific Apache related 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,

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
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 (com

Re: Apache::Config module

2000-06-28 Thread Hasanuddin Tamir
main.com NW] 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->{usecanonic

Re: Apache::Config module

2000-06-28 Thread James G Smith
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}) ) { >

Re: Apache::Config module

2000-06-28 Thread Piers Cawley
> > Perhaps > > > > 3. multi-level hash, i.e. > >$conf->{directory}->{'/'}->{sethandler} > > > > This is, afaik, more in-line with what the ... sections do. I > > would suggest making it so the output of this module could easily be fed into > > the mod_perl configuration engine

Re: Apache::Config module

2000-06-27 Thread Nathan Wiger
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: > > UseCanonicalNam

Re: Apache::Config module

2000-06-27 Thread James G Smith
anonicalName Off > >And parse 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";

Re: Apache::Config module

2000-06-27 Thread James G Smith
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 > and . I am

Apache::Config module

2000-06-27 Thread Nathan Wiger
hash: 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