ARTHUR GOLDBERG | 1 Apr 01:55 2010
Picon

Apache2::Resource

Hi users <at> httpd

As I mentioned in an earlier email, we're running mod_perl on Apache  
(2.2) on RHEL, using the prefork MPM. I want to protect my server  
against Perl processes that grow much too large, as they can slow or  
even freeze the system.
Therefore, I'm using Apache2::Resource, adding the following to  
httpd.conf:
> PerlModule Apache2::Resource
> # set child memory limit to 1000 megabytes
> # RLIMIT_AS (address space) will work to limit the size of a process
> PerlSetEnv PERL_RLIMIT_AS 1000
> PerlChildInitHandler Apache2::Resource

httpd processes die as expected when their VM size reaches 1000 MB.

But here's the problem. After the httpd serving the Request dies, a  
new one is created to handle the same request. And so on.
I think this is all done in Apache, as the access log doesn't show  
another request from the client. Is this correct?
How can I limit the number of 'retries' of the failing request? Is  
there an Apache directive?
And I'm still looking for a way to 'catch' the exception when the  
process dies.

Regards
Arthur

Arthur P. Goldberg, PhD

(Continue reading)

Eric Covener | 1 Apr 02:14 2010
Picon

Re: Apache2::Resource

On Wed, Mar 31, 2010 at 7:55 PM, ARTHUR GOLDBERG <artg <at> cs.nyu.edu> wrote:

> httpd processes die as expected when their VM size reaches 1000 MB.
>
> But here's the problem. After the httpd serving the Request dies, a new one
> is created to handle the same request. And so on.
> I think this is all done in Apache, as the access log doesn't show another
> request from the client. Is this correct?

That doesn't sound right at all. You'll get a replacement if your
prefork config and the load dictates one, but it doesn't pick up where
the other left off. The request is lost (since none of them ever end,
you might not see an access log entry at all.  Try it with wget)

--

-- 
Eric Covener
covener <at> gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Nilesh Govindarajan | 1 Apr 03:46 2010

Re: getting ErrorDocument to perform a 'hard' redirect

On 04/01/10 04:29, E R wrote:
> Hi everyone,
>
> I'd like to have:
>
> ErrorDocument 404 /some/local/url
>
> perform a hard redirect (i.e. it actually sends a 302 back to the client.)
>
> I don't want to specify a full url like this:
>
> ErrorDocument 404 http://some.host:8888/some/local/url
>
> because I don't want to have to inject the host, port and even
> http/https into the Apache configuration file.
>
> The only way I can think of doing this is through a combination of
> ErrorDocument and mod_rewrite:
>
> ErrorDocument 404 /local-redirect/some/local/url
>
> RewriteRule /local-redirect(/.*) $1 [some flags...]
>
> Just want to make sure I'm not overlooking something (like % macros
> which expand to method, host and port of the current request).
>
> btw - I'm using Apache 1.3.41
>
> Thanks,
> ER
(Continue reading)

Nilesh Govindarajan | 1 Apr 03:48 2010

Re: Re: Conditionally process directives based on environment variable values in Apache conf?

On 04/01/10 00:58, Jeffery Martin wrote:
> I found this in the mail archives.
>
> http://mail-archives.apache.org/mod_mbox/httpd-users/200601.mbox/%3Ce498c1660601190620i664df153y2bbbbd8f7aa2a9d7 <at> mail.gmail.com%3E
>
> "But the standard advice in cases like this is: httpd.conf is not a
> programming language, it is a config file.  If you need more advanced
> features, then use your favorite preprocess (m4, etc) to generate your
> config files."
>
> This certainly applies to my situation, and I was thinking something
> similar.  Still, the Apache httpd conf syntax is quite powerful, so my
> question still seemed worth asking.
>
>
>
> On Wed, Mar 31, 2010 at 1:16 PM, Jeffery Martin<je44ery <at> gmail.com>  wrote:
>> Hello,
>>
>> Is there a way in the Apache conf syntax to conditionally process
>> directives based on a string comparison using environment variables?
>>
>> I am aware of using the IfDefine directive and the -D flag of httpd,
>> but that functionality is not quite when I am looking for.
>>
>> For example, suppose the directive I am looking for were named
>> "IfMatch".  I would want to do something like this.
>>
>> <IfMatch ${MYVAR1} "production">
>>     # Directives related to production.
(Continue reading)

Jeffery Martin | 1 Apr 05:34 2010
Picon

Re: Re: Conditionally process directives based on environment variable values in Apache conf?

Hmmm, in other words, use mod_perl, then, right?

On Wed, Mar 31, 2010 at 8:48 PM, Nilesh Govindarajan <lists <at> itech7.com> wrote:
> On 04/01/10 00:58, Jeffery Martin wrote:
>>
>> I found this in the mail archives.
>>
>>
>> http://mail-archives.apache.org/mod_mbox/httpd-users/200601.mbox/%3Ce498c1660601190620i664df153y2bbbbd8f7aa2a9d7 <at> mail.gmail.com%3E
>>
>> "But the standard advice in cases like this is: httpd.conf is not a
>> programming language, it is a config file.  If you need more advanced
>> features, then use your favorite preprocess (m4, etc) to generate your
>> config files."
>>
>> This certainly applies to my situation, and I was thinking something
>> similar.  Still, the Apache httpd conf syntax is quite powerful, so my
>> question still seemed worth asking.
>>
>>
>>
>> On Wed, Mar 31, 2010 at 1:16 PM, Jeffery Martin<je44ery <at> gmail.com>  wrote:
>>>
>>> Hello,
>>>
>>> Is there a way in the Apache conf syntax to conditionally process
>>> directives based on a string comparison using environment variables?
>>>
>>> I am aware of using the IfDefine directive and the -D flag of httpd,
>>> but that functionality is not quite when I am looking for.
(Continue reading)

Vikas Malhotra | 1 Apr 06:14 2010
Picon

Apache 4.3 HTTP Server Configuration

Hi
  I received 2 DVDs with PHP codes: 652469 & 652423 12 days back.Apparently over here people don't seems to help us with the configuration.Kindly guide us as to what shld i do next...

--
Regards,
Vikas Malhotra
+91 9198915868
Sidh Infotech
Lucknow
India
Nick Kew | 1 Apr 06:37 2010

Re: Conditionally process directives based on environment variable values in Apache conf?


On 31 Mar 2010, at 19:16, Jeffery Martin wrote:

> For example, suppose the directive I am looking for were named
> "IfMatch".  I would want to do something like this.
> 
> <IfMatch ${MYVAR1} "production">
>    # Directives related to production.
> </IfMatch>
> 
> <IfMatch ${MYVAR1} "test">
>    # Directives related to test.
> </IfMatch>
> 
> <IfMatch ${MYVAR1} "development">
>    # Directives related to development.
> </IfMatch>

The easy/clean way to implement that would be in apachectl.
You use three <IfDefine>s, and pick the right one from your MYVAR1
within apachectl.

You can do more with <If ....>, and of course a great deal more with
a scripting language.  But that would be overkill for selecting from a
menu of pre-defined options.

--

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Nick Kew | 1 Apr 06:38 2010

Re: Apache 4.3 HTTP Server Configuration


On 1 Apr 2010, at 05:14, Vikas Malhotra wrote:

> Hi
>   I received 2 DVDs with PHP codes: 652469 & 652423 12 days back.Apparently over here people don't seems to
help us with the configuration.Kindly guide us as to what shld i do next...

Ask whoever supplied your DVDs.  They're nothing to do with us.

--

-- 
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Vikas Malhotra | 1 Apr 06:45 2010
Picon

Re: Apache 4.3 HTTP Server Configuration

Dear Nick,
                 It was provided by Rahul Metha & Sapna Kanwar.Now they are not answer emails & phone.They project themselves as reprentatives of Apache Indonesia Project.Is it a scam ?

On Thu, Apr 1, 2010 at 10:08 AM, Nick Kew <nick <at> webthing.com> wrote:

On 1 Apr 2010, at 05:14, Vikas Malhotra wrote:

> Hi
>   I received 2 DVDs with PHP codes: 652469 & 652423 12 days back.Apparently over here people don't seems to help us with the configuration.Kindly guide us as to what shld i do next...

Ask whoever supplied your DVDs.  They're nothing to do with us.

--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
  "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org




--
Regards,
Vikas Malhotra
Sidh Infotech
Nicholas Sherlock | 1 Apr 08:28 2010
Picon

Re: Apache 4.3 HTTP Server Configuration

On 1/04/2010 5:45 p.m., Vikas Malhotra wrote:
> Dear Nick,
>                   It was provided by Rahul Metha & Sapna Kanwar.Now they
> are not answer emails & phone.They project themselves as reprentatives
> of Apache Indonesia Project.Is it a scam ?

Almost certainly, it is a scam:

http://www.apache-project.org/

Titled "Apache Indonesia Project", it includes this nice article on 
their main page:

"The rule is very simple: if a website is not hosted on an apache.org 
domain, it's not a website of the ASF (with a few exceptions, see below).

In other words, if the site's address doesn't end with .apache.org, it's 
not ours. Note the dot before apache.org: fooapache.org or apachefoo.org 
wouldn't belong to us, whereas foo.apache.org does.

The only exceptions to that rule are apachecon.com, which is jointly 
managed between
the ASF and companies producing our conferences, and spamassassin.org 
and myfaces.org, for historical reasons."

Looks like they ripped the whole thing from Apache's site. They even 
reference this address:

http://apache-project.webs.com/center.jpg

I'm pretty sure Apache doesn't host anything on the free hosting 
provider Webs.com

Cheers,
Nicholas Sherlock

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Gmane