Re: pre_mpm hook

2004-11-13 Thread Bojan Smojver
Quoting Bojan Smojver [EMAIL PROTECTED]:

 Am I on the right track, or should I start over?

Tried doing that, it's a complete dead end. Don't worry about this one, I'll
figure something else out...

--
Bojan


Re: Use threaded MPM by default was Re: cvs commit: httpd-2.0 STATUS

2004-11-13 Thread Stas Bekman
Joe Orton wrote:
On Sat, Nov 06, 2004 at 12:48:50AM -0800, Justin Erenkrantz wrote:
--On Saturday, November 6, 2004 8:28 AM + [EMAIL PROTECTED] wrote:

@@ -125,6 +125,8 @@
   +0:   BrianP, Aaron (mutex contention is looking better with the
 latest code, let's continue tuning and testing), rederpj, 
 jim
   -0:   Lars
+
+  pquerna: Do we want to change this for 2.2?
Seems reasonable to do so.  2.0 was our first threaded release - making a 
threaded MPM by default (if available) for 2.2 seems fine by me.  -- justin

I don't really agree with this.  Many third-party modules still aren't
thread-safe (and probably quite a few shipped in httpd too e.g. 
mod_example!).  Making worker the default won't solve that, it'll just
create a stream of I upgraded to 2.2 and now everything segfaults bug
reports and people will stick with 1.3/2.0. 

2.2 can be a compelling upgrade without making worker the default.
I second that.
--
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


{PATCH 1] Reverse proxy IIS with gzipped disk cache

2004-11-13 Thread Przemek Czerkas
Hi all,

I needed to reverse proxy IIS (with modified FlatCompression ISAPI filter, 
which dont cache), cache it on disk and uncompress for clients that dont 
Accept-Encoding: gzip. I've finally managed to set up all these mods together. 
Suprisingly it works w/o mod_rewrite and SetEnvIf. Here's my httpd.conf:

httpd.conf
[...]
#
# - reverse proxy gzipped data from IIS
# - disk cache it
# - inflate for clients not sending `Accept-Encoding: gzip` header
#
# Based on fact (bug?), that when request is served from cache (quick_handler)
# the config directive `RequestHeader set Accept-Encoding gzip,foobar' 
# is overriden by client's Accept-Encoding request header.
#
# Side effect: not yet cached response data goes out uncompressed.
#

LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule filter_module modules/mod_filter.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so

RequestHeader set Accept-Encoding gzip,foobar
Header echo Accept-Encoding

FilterDeclare my_filter1 CONTENT_SET
FilterProvider my_filter1 INFLATE req=Accept-Encoding $foobar
FilterProvider my_filter1 INFLATE req=Accept-Encoding !$gzip
FilterChain my_filter1

CacheRoot c:/apache2/cache
CacheMinFileSize 0
CacheMaxFileSize 256000
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 2

ProxyPreserveHost On
ProxyPass / http://xxx.xxx.xxx.xxx/
ProxyPassReverse / http://xxx.xxx.xxx.xxx/
/httpd.conf

I also needed to patch mod_cache.c to initialize output filters and properly 
handle redirects from backend. Here's the patch:
http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=13433

Regards
Przemek Czerkas



[NOTICE] Subversion conversion

2004-11-13 Thread Sander Striker
Hi,

I'm finally taking care of the conversion of httpd-* to SVN.
I'll follow up with instructions on how to pull new workingcopies,
etc etc.  I'm looking for volunteers to actually write a page
for developers on where to get SVN and how to check out the
sources from the SVN repository.

I'm shooting for being done with it all by tomorrow night.

Sander


Re: [NOTICE] Subversion conversion

2004-11-13 Thread Yoshiki Hayashi
[Hope moderators won't discard this mail to lists that I'm
not subscribed to]

Sander Striker [EMAIL PROTECTED] writes:

 I'm finally taking care of the conversion of httpd-* to SVN.
 I'll follow up with instructions on how to pull new workingcopies,
 etc etc.  I'm looking for volunteers to actually write a page
 for developers on where to get SVN and how to check out the
 sources from the SVN repository.

Sander is sitting right next to me at Hackathon and asked me
whether I want to write a doc.  Well, I'm too lazy to write
long English documentation and it seems somebody has already
done it. :-)
http://www.apache.org/dev/version-control.html

-- 
Yoshiki Hayashi