Re: one problem processing config file

2012-02-23 Thread Eric Covener
On Thu, Feb 23, 2012 at 1:35 AM, Rui Hu tchrb...@gmail.com wrote:
 hi,

 I want to develop a module, which can implement simple function for each
 root directory like 1) set error document, 2) set default page, 3) simple
 url rewrite rules.

 In this function, I can design my own directive and rewrite rule
 expressions. But I not sure if those functionalities can be implemented in
 one module, should I also modified Apache core?

You don't want to depend on changes to the core in your module.


Re: Event and simple

2012-02-23 Thread Jim Jagielski
Yeah, I was thinking the same thing 
On Feb 22, 2012, at 4:40 PM, Stefan Fritsch wrote:

 On Wed, 22 Feb 2012, Jim Jagielski wrote:
 
 I hope to carve out cycles to work on the trunk rev's of event and
 simple in order to backport to 2.4...
 
 Thoughts? :)
 
 For event, I would recommend to move Paul's changes into a branch and revert 
 trunk to the state of 2.4. Then we can do small changes and bug fixes in 
 trunk and more radical changes in the branch. Of course it is up to you on 
 which of the two you want to work ;)
 



Re: DO NOT REPLY [Bug 52748] New: build should blow up early with apr 1.3 or earlier?

2012-02-23 Thread Rainer Jung

On 23.02.2012 15:19, bugzi...@apache.org wrote:

https://issues.apache.org/bugzilla/show_bug.cgi?id=52748

  Bug #: 52748
Summary: build should blow up early with apr 1.3 or earlier?
Product: Apache httpd-2
Version: 2.4.1
   Platform: PC
 OS/Version: Linux
 Status: NEW
   Severity: normal
   Priority: P2
  Component: Build
 AssignedTo: b...@httpd.apache.org
 ReportedBy: cove...@gmail.com
 Classification: Unclassified


Two separate users on IRC reported build failures with APR  1.4 with build
errors in rotatleogs for apr_file_link which is 1.4-and-up.

I'm not sure what other 1.4-isms there are, but it might be reasonable to just
bail out if an older APR is used rather than permitting it w/o default features
X,Y,Z...


+1 to apr 1.4.

Never noticed such problem when using *apr-util* 1.3 apart from 
mod_session_crypto of course is not buildable. Since apr-util 1.4 is 
pretty fresh, I would prefer not to strictly require that.


But the first release of apr 1.4 was in April 2010, so IMHO long enough 
to get used to it. Whoever wants to build httpd 2.4 on an outdated 
platform shouldn't find it to big a problem to include apr into srclib. 
The biggest problem might be educating users and formulating 
installation docs clear enough.


Never tried to build with *apr* 1.3 myself.

Regards,

Rainer



worker slotmem_grab failed (2.4.1)

2012-02-23 Thread f_los_ch
Hi together,

I'm trying to get my reverse-proxy running with the new httpd 2.4.1,
that aborts now with worker slotmem_grab failed.

When looking at mod_proxy_balancer:

It looks like each balancer creates the SHM for its number of workers (1
in my case) using its unique -sname. After that, each worker grabs a
slot from this.

I have several virtual hosts pointing to the same balancer (by rewrite
[P]). So, the second time, the balancer calls shm's slotmem_create again
with its name, that already exists - kind-of noop.

Now, the SHM under the balancer's name has still only 1 slot (that is
already occupied).

When the worker now wants to (re-)grab its slot, I get:

[slotmem_shm:debug] mod_slotmem_shm.c(575): AH02293: slotmem(...) grab
failed. Num 1/num_free 0 [proxy_balancer:emerg] (22)Invalid argument:
AH01186: worker slotmem_grab failed 
Please note that my explanation should only be considered as an educated
guess for the reason of the error - there might be other obvious causes
that I have overseen.

Has anyone similar issues? Any suggestions?

Thanks in advance,
Florian


$ httpd -V Server version: Apache/2.4.1 (Unix) Server built:   Feb 23
2012 18:21:48 Server's Module Magic Number: 20120211:0 Server loaded:
APR 1.4.5, APR-UTIL 1.4.1 Compiled using: APR 1.4.5, APR-UTIL 1.4.1
Architecture:   32-bit Server MPM: event   threaded: yes (fixed
thread count) forked: yes (variable process count) 



Apache 2.4.1 Throughput compared with nginx

2012-02-23 Thread MATSUMOTO Ryosuke
Hi all,

I evaluated the throughput of Apaceh 2.4.1. I compared apache(2.4.1,
2.2.3) with nginx.
I used httperf benchmark 0.9.0 to measure thethroughput.

http://blog.matsumoto-r.jp/?p=1812

I feel bad about writing this article in Japanese in my hurry ;)

Regards,
-- 
MATSUMOTO Ryosuke  matsu1229 at gmail.com 
http://blog.matsumoto-r.jp/


Re: Apache 2.4.1 Throughput compared with nginx

2012-02-23 Thread dreamice
could you write it in English?

2012/2/24 MATSUMOTO Ryosuke matsu1...@gmail.com

 Hi all,

 I evaluated the throughput of Apaceh 2.4.1. I compared apache(2.4.1,
 2.2.3) with nginx.
 I used httperf benchmark 0.9.0 to measure thethroughput.

 http://blog.matsumoto-r.jp/?p=1812

 I feel bad about writing this article in Japanese in my hurry ;)

 Regards,
 --
 MATSUMOTO Ryosuke  matsu1229 at gmail.com 
 http://blog.matsumoto-r.jp/



Re: Apache 2.4.1 Throughput compared with nginx

2012-02-23 Thread Greg Stein
Google Translate :-)

On Fri, Feb 24, 2012 at 01:06, dreamice dreamice.ji...@gmail.com wrote:
 could you write it in English?


 2012/2/24 MATSUMOTO Ryosuke matsu1...@gmail.com

 Hi all,

 I evaluated the throughput of Apaceh 2.4.1. I compared apache(2.4.1,
 2.2.3) with nginx.
 I used httperf benchmark 0.9.0 to measure thethroughput.

 http://blog.matsumoto-r.jp/?p=1812

 I feel bad about writing this article in Japanese in my hurry ;)

 Regards,
 --
 MATSUMOTO Ryosuke  matsu1229 at gmail.com 
 http://blog.matsumoto-r.jp/