RE: [us...@httpd] Apache 2.0 Timeout + ProxyRemote

2009-06-22 Thread Karim Zaki
Timeout + ProxyRemote On Mon, Jun 22, 2009 at 8:49 AM, Karim Zaki wrote: > Hello, > > I'm running Apache 2.0 on Solaris 10, and I have it configured to proxy > requests to a Squid server. The configuration is as follows: > > ProxyRemote * http://: > > Apache i

[us...@httpd] Apache 2.0 Timeout + ProxyRemote

2009-06-22 Thread Karim Zaki
Hello, I'm running Apache 2.0 on Solaris 10, and I have it configured to proxy requests to a Squid server. The configuration is as follows: ProxyRemote * http://: Apache is configured with a 10-second timeout as follows: Timeout 10 However, I'm seeing requests in the Apache logs t

Re: [us...@httpd] Environment variable problem with mod_rewrite and mod_headers

2009-04-07 Thread Karim Zaki
So all rewrite rules are processed before RequestHeader regardless of their order in the Apache configuration? Why is that the case? Is there somewhere that this behavior is documented. I need to document a justification for this behavior. On 4/6/09 6:49 PM, "Nick Kew" wrote: > Kar

[us...@httpd] Environment variable problem with mod_rewrite and mod_headers

2009-04-06 Thread Karim Zaki
Hi all, I¹m experiencing a strange issue with mod_rewrite and mod_headers. Basically, what I¹m doing is setting an environment variable using mod_rewrite and trying to use the value of that variable to set a header in the request using mod_headers. Details: RewriteCond %{HTTP:TEST-HE

[us...@httpd] Multiple requests to mod_cache while content is being regenerated

2009-01-28 Thread Karim Zaki
Hi, I'm running Apache/2.2.11 with mod_jk/1.2.27 on Windows Server 2003. I would like to know how mod_cache behaves when it receives multiple concurrent requests to a URL that's not in cache (or has expired). Will it request the URL multiple times from the back-end Tomcat application server via

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-18 Thread Karim Zaki
s for your help, Eric. -Original Message----- From: Karim Zaki Sent: Sunday, January 18, 2009 12:02 PM To: 'users@httpd.apache.org' Subject: RE: [us...@httpd] Processing mod_cache after mod_rewrite I checked the event logs and found that it's looking for .net framework DLLs and

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-18 Thread Karim Zaki
hu, Jan 15, 2009 at 11:49 AM, Karim Zaki wrote: > Unfortunately > > -Original Message- > From: Eric Covener [mailto:cove...@gmail.com] > Sent: Thursday, January 15, 2009 6:46 PM > To: users@httpd.apache.org > Subject: Re: [us...@httpd] Processing mod_cache after mod_rewr

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-15 Thread Karim Zaki
Unfortunately -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Thursday, January 15, 2009 6:46 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] Processing mod_cache after mod_rewrite On Thu, Jan 15, 2009 at 11:43 AM, Karim Zaki wrote: > Eric, &g

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-15 Thread Karim Zaki
s...@httpd] Processing mod_cache after mod_rewrite On Wed, Jan 14, 2009 at 10:47 AM, Karim Zaki wrote: > Sounds interesting. Do you know where I can get a build that I can expect to > successfully compile? easiest way would be to download 2.2.11 and then apply the trivial patch here: http:

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-15 Thread Karim Zaki
Thanks. I'll give it a shot. From: Eric Covener [cove...@gmail.com] Sent: Wednesday, January 14, 2009 19:44 To: users@httpd.apache.org Subject: Re: [us...@httpd] Processing mod_cache after mod_rewrite On Wed, Jan 14, 2009 at 10:47 AM, Karim Zaki

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-14 Thread Karim Zaki
mod_cache after mod_rewrite On Wed, Jan 14, 2009 at 10:15 AM, Karim Zaki wrote: > But if I stuck with rewrite, mod_cache would still process before rewrite, > and so this solution would not work. I think he'll decide to try to save it, but there are checks during this very late saving t

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-14 Thread Karim Zaki
mod_cache after mod_rewrite On Wed, Jan 14, 2009 at 9:36 AM, Karim Zaki wrote: > Hi Eric, > > Thanks for the insight. Do you mean that I should set it using SetEnvIf, or > did you have something else in mind? The advice below would be if you stuck with rewrite, the E flag. But if you di

RE: [us...@httpd] Processing mod_cache after mod_rewrite

2009-01-14 Thread Karim Zaki
: [us...@httpd] Processing mod_cache after mod_rewrite On Wed, Jan 14, 2009 at 7:41 AM, Karim Zaki wrote: > All, > > I need to have mod_cache process requests after mod_rewrite is done with > them. The reason I need this is that CacheEnable only accepts a path and will > cache e

[us...@httpd] Processing mod_cache after mod_rewrite

2009-01-14 Thread Karim Zaki
All, I need to have mod_cache process requests after mod_rewrite is done with them. The reason I need this is that CacheEnable only accepts a path and will cache everything under that path, while I need to cache based on more granular criteria...so I need mod_rewrite to look at the request and

[us...@httpd] RE: Caching "virtual directory" requests

2009-01-04 Thread Karim Zaki
Hi all, Any help with this request would be highly appreciated :). Thanks, Karim From: Karim Zaki Sent: Tuesday, December 30, 2008 3:10 PM To: users@httpd.apache.org Subject: Caching "virtual directory" requests Hello everyone, I'm running Apache 2.2.11 with mod_jk and mo

[us...@httpd] Caching "virtual directory" requests

2008-12-30 Thread Karim Zaki
Hello everyone, I'm running Apache 2.2.11 with mod_jk and mod_cache. Apache doesn't seem to be caching requests for "virtual directories" (i.e. requests for URIs that don't end in a file name). My back-end Tomcat application uses such URLs (e.g. http:///http://%3chost-%3e/%3cvirtual-directory>>

RE: [us...@httpd] RE: Using mod_cache to cache URLs matching a regular expression

2008-12-24 Thread Karim Zaki
3:31 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] RE: Using mod_cache to cache URLs matching a regular expression On Wed, Dec 24, 2008 at 8:02 AM, Karim Zaki wrote: > Hi Eric, > > The idea sounds good, but I can't seem to get it to work. I need to modify > the host h

RE: [us...@httpd] RE: Using mod_cache to cache URLs matching a regular expression

2008-12-24 Thread Karim Zaki
26 AM To: users@httpd.apache.org Subject: Re: [us...@httpd] RE: Using mod_cache to cache URLs matching a regular expression On Tue, Dec 23, 2008 at 11:28 AM, Karim Zaki wrote: > Guys, > Anyone interested in shedding some light here? J Nothing you can do directly here, I think. Enable it t

[us...@httpd] RE: Using mod_cache to cache URLs matching a regular expression

2008-12-23 Thread Karim Zaki
Guys, Anyone interested in shedding some light here? :) Thanks, Karim From: Karim Zaki Sent: Monday, December 22, 2008 1:41 PM To: users@httpd.apache.org Subject: Using mod_cache to cache URLs matching a regular expression Hello everyone, I find myself in need of a way to cache URLs that

[us...@httpd] Using mod_cache to cache URLs matching a regular expression

2008-12-22 Thread Karim Zaki
Hello everyone, I find myself in need of a way to cache URLs that match a specific regular expression, rather than a whole virtual directory with everything below it. Is there a way to do this using mod_cache? Thanks, Karim --

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-02 Thread Karim Zaki
cache-control: no-cache. I think this is the way it's going to have to work. Thanks again to everyone for your contributions. -Original Message- From: Karim Zaki [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 1:07 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROT

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-02 Thread Karim Zaki
Seems I'm back at square 1. The idea of using max-age=0 did not work, which, on second thought, makes sense. CacheIgnoreCacheControl should ignore the "cache-control" header regardless of its value. The virtual host solution did not work either. It created new cache entries for the vhost. -

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-02 Thread Karim Zaki
ost will not work as simply as expected. There is also somewhere in there the indication that you can overcome this by using another directive, but I have no idea if that would have or not other undesirable consequences in your case. Karim Zaki wrote: > I think I will try using the vi

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
for that. Karim Zaki wrote: > Yes. When a page changes, this fires an event, which I can catch and run some > code. I would like that code to clear the cache for this specific page. > > -Original Message- > From: André Warnier [mailto:[EMAIL PROTECTED] > Sent: Monday, Dece

RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
-Original Message- From: Karim Zaki [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 3:58 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache Yeah in this instance there are 2 interfaces on the box. I'll use the int

RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
Yeah in this instance there are 2 interfaces on the box. I'll use the internal interface, which is not accessible from the Internet anyway...so CacheIgnoreCacheControl Off Let's see how that works. -Original Message- From: Eric Covener [mailto:[EMAIL PROTECTED] Sent: Monday, December

RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
Covener [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 2:54 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache On Mon, Dec 1, 2008 at 7:46 AM, Karim Zaki <[EMAIL PROTECTED]> wrote: > So the CacheIgnoreCacheControl

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
Subject: Re: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache Ok then. So, how do you know that a given page changed ? I mean, if you don't want to wait, it means you have some way to know that the page has changed for which you don't want to wait, right ? Karim Zaki wrote:

[EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
IL PROTECTED] Sent: Monday, December 01, 2008 1:48 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache Karim, Because we instructed mod_cache to ignore CacheControl headers as well, it's the same as your case. Tamer __

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
ead of asking Tomcat again, at least during these 24 hours. Then, when mod_cache realises that the page's "valid until" date has passed, it will request a new version from Tomcat automatically. So, is there any particular reason why the above scheme is not applicable in your case

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
s clear certain pages from cache. -Original Message- From: André Warnier [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 1:00 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache Karim Zaki wrote: > Greetings all, >

[EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
help in your case either. P.S. Look for Hossam Karim if you need the Java code, he is the one who did that. Regards, Tamer ____ From: Karim Zaki [mailto:[EMAIL PROTECTED] Sent: Sunday, November 30, 2008 4:59 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Cleari

RE: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-12-01 Thread Karim Zaki
e + mod_cache On Sun, Nov 30, 2008 at 9:59 AM, Karim Zaki <[EMAIL PROTECTED]> wrote: > Greetings all, > > > > I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking for > a way to clear the cache from Apache for specific URLs. I'm using Apach

[EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-11-30 Thread Karim Zaki
Greetings all, I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking for a way to clear the cache from Apache for specific URLs. I'm using Apache to cache dynamic content that is served by Tomcat, and I would like to keep the content (age) high (e.g. 24 hours) but still to be