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

2008-12-01 Thread Karim Zaki
That sounds like a possible way to go. However, this spills into another question. I have the CacheIgnoreCacheControl directive set to On for mod_cache. I know that this means no-cache is ignored in the request. Does it also ignore max-age, or can I force the cache to clear by using max-age

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

2008-12-01 Thread Karim Zaki
Why do you think using request headers would not work? From: Tamer Embaby [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 1:39 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache Karim, I'm afraid you have to do that

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

2008-12-01 Thread Karim Zaki
But that would be like re-implementing mod_cache, wouldn't it? Apache is already doing this for me. It's caching the dynamic content, keeping it for 24 hours, and checking if it's in cache before requesting it from the back-end server. The only problem is that I need to sometimes clear certain

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

2008-12-01 Thread André Warnier
Karim Zaki 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 Apache to cache dynamic content that is served by Tomcat, and I would like to keep the content (age) high (e.g. 24

[EMAIL PROTECTED] Apache not starting

2008-12-01 Thread Gaurav Pruthi
Hi All, I was adding anpther apache node to the cluster. All the nodes have RHEL5 installed on it. I downloaded the source httpd-2.2.10 and compile it using commands: ./configure --prefix=/usr/local/apache --enable-module=so --enable-rewrite=shared --enable-cgi=shared --enable-unique_id=shared

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

2008-12-01 Thread André Warnier
I guess it all depends on your definition of dynamic, and how you handle this at the source. When your Tomcat generates an answer page, it can add HTTP headers that indicate for how long this content is valid. If it doesn't, then by default this means that the page is effectively dynamic

[EMAIL PROTECTED] regarding content compression

2008-12-01 Thread Torsten Foertsch
Hi, I am about to set up compression. One thing puzzles me a bit. Nowadays most browsers know how to handle compressed data. So, it seems to me that storing that data compressed on disk and send it via sendfile would be better than having mod_deflate compress it each time anew. The few

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

2008-12-01 Thread Tamer Embaby
Karim, Because we instructed mod_cache to ignore CacheControl headers as well, it's the same as your case. Tamer From: Karim Zaki [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 12:36 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] RE:

Re: [EMAIL PROTECTED] regarding content compression

2008-12-01 Thread André Warnier
Torsten Foertsch wrote: Hi, I am about to set up compression. One thing puzzles me a bit. Nowadays most browsers know how to handle compressed data. So, it seems to me that storing that data compressed on disk and send it via sendfile would be better than having mod_deflate compress it each

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

2008-12-01 Thread André Warnier
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: This is exactly what is in place right now. I've written a filter in Tomcat to

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

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 7:46 AM, Karim Zaki [EMAIL PROTECTED] wrote: So the CacheIgnoreCacheControl directive ignores max-age as well as no-cache? I've seen some stuff online that suggested that it honors max-age=0, but not no-cache…which would provide a nice little backdoor. you might consider

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

2008-12-01 Thread Karim Zaki
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, December 01, 2008 2:50 PM To: users@httpd.apache.org

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

2008-12-01 Thread Karim Zaki
So the CacheIgnoreCacheControl directive ignores max-age as well as no-cache? I've seen some stuff online that suggested that it honors max-age=0, but not no-cache...which would provide a nice little backdoor. From: Tamer Embaby [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 1:48 PM

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

2008-12-01 Thread Karim Zaki
That sounds like a great idea, but how do I configure mod_cache differently for the vhost? Would I configure it within the vhost scope? If so, that configuration would need to point to the same cache store, but without the CacheIgnoreCacheControl, right? -Original Message- From: Eric

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread srinivasch
Anyone please help srinivasch wrote: Hi I need some help in configuration or some snippet to help me in configuring my apache web server to cache frequently downloaded non static file from my application. each file has a different ID. I am totally new to this apache configuration,

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

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 8:00 AM, Karim Zaki [EMAIL PROTECTED] wrote: That sounds like a great idea, but how do I configure mod_cache differently for the vhost? Would I configure it within the vhost scope? If so, that configuration would need to point to the same cache store, but without the

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 8:20 AM, srinivasch [EMAIL PROTECTED] wrote: I need some help in configuration or some snippet to help me in configuring my apache web server to cache frequently downloaded non static file from my application. each file has a different ID. I am totally new to this

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

2008-12-01 Thread Tamer Embaby
Eric, So using 2 vhosts would be: # External vhost VirtualHost *:80 ServerName www.example.com CacheRoot /path/to/cache Cache disk /url CacheIgnoreCacheControl On CacheMaxExpire 86400 CacheDefaultExpire 86400 /VirtualHost # Internal vhost

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

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 8:42 AM, Tamer Embaby [EMAIL PROTECTED] wrote: Eric, So using 2 vhosts would be: # External vhost VirtualHost *:80 ServerName www.example.com CacheRoot /path/to/cache Cache disk /url CacheIgnoreCacheControl On CacheMaxExpire

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 VirtualHost internal-ip CacheIgnoreCacheControl Off /VirtualHost Let's see how that works. -Original Message- From: Eric Covener

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

2008-12-01 Thread André Warnier
When I look at this series of messages, and at a previous thread on this list, with subject : Best filesystem type for mod_cache in reverse proxy? and at this : http://httpd.apache.org/docs/2.2/caching.html then I get the idea that the directory/file structure used by mod_disk_cache is not so

[EMAIL PROTECTED] =?UTF-8?B?RmlsZSB1cGxvYWQgdG8gQXBhY2hlIHNlcnZlciAoUE9TVCk= ?=

2008-12-01 Thread prasanthgs
Hi All, First of all, sorry for the long mail. Gist of the mail is to know how to use the POST method for Apache server without installing Tomcat or any third party software. I have a Server version: Apache/2.0.54 installed in my system. I have configured it to act as a server as well as a

[EMAIL PROTECTED] =?UTF-8?B?RmlsZSB1cGxvYWQgdG8gQXBhY2hlIHNlcnZlciB3aXRob3V0IHRoaXJkIHBhcnR5IHNvZnR3YXJl ?=

2008-12-01 Thread prasanthgs
Hi All, First of all, sorry for the long mail. To give a gist of the mail, I want to know how to use the POST method for Apache server without installing Tomcat or anything. I have a Server version: Apache/2.0.54 installed in my system. I have configured it to act as a server as well as a

Re: [EMAIL PROTECTED] =?UTF-8?B?RmlsZSB1cGxvYWQgdG8gQXBhY2hlIHNlcnZlciAoUE9TVCk= ?=

2008-12-01 Thread André Warnier
Hi. First I think you need to fix your email program, because it is giving some really bizarre stuff in the subject of your emails. Second, I would recommend that you get some basic training about what the HTTP protocol is and does. This list is a support list for the Apache httpd server,

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread srinivasch
Hi Eric, As of now I have done nothing, just going through the documentation whether it can be done, I posted here if anyone has already done this. That is my URL construct and its not from a form submission, its from view record where there is a link to download the file and the URL of that

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread André Warnier
srinivasch wrote: [...] Hi. The problem is, your question is so vague that it is difficult to give you any precise response. You may benefit from reading the messages of one of the previous threads on this same list, the ones with the subject : Clearing cache selectively on Apache +

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 10:35 AM, srinivasch [EMAIL PROTECTED] wrote: Hi Eric, As of now I have done nothing, just going through the documentation whether it can be done, I posted here if anyone has already done this. That is my URL construct and its not from a form submission, its from view

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

2008-12-01 Thread Tamer Embaby
Karim, Please let me know if it works for you. Tamer -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

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread srinivasch
I am sorry if my question is vague. Anyways YES you are right we already have an application which runs on tomcat and Apache web server. The PDF documents I mentioned are big and they need to be retrieved everytime from database whenever user requests, and we have quite a volume of users and

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

2008-12-01 Thread Karim Zaki
Will do -Original Message- From: Tamer Embaby [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 5:49 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache Karim, Please let me know if it works for you. Tamer

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

2008-12-01 Thread Karim Zaki
I think I will try using the virtual host option first.. Thanks to everyone for your contributions to the discussion. -Original Message- From: André Warnier [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2008 3:54 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread André Warnier
Ok, now it is a bit clearer. You really need to read the series of earlier messages I mentioned earlier. The basic case is very similar to yours. Thus, you have an Apache front-end, and a Tomcat back-end. The Tomcat back-end is the one that produces the answers, which are generally large PDF

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

2008-12-01 Thread André Warnier
One last note : following your original post, I re-read the Apache documentation on caching content (never a bad idea, that). In there, I saw something about the fact that in order to cache content, mod_cache calculates a hashcode for the URL to cache, in which calculation is included (and that

Re: [EMAIL PROTECTED] Need help in configuring caching of frequently downloaded file.

2008-12-01 Thread Wii Sale
Thanks a lot for your response. I would go through the documentation and would try my best. On Mon, Dec 1, 2008 at 11:02 AM, André Warnier [EMAIL PROTECTED] wrote: Ok, now it is a bit clearer. You really need to read the series of earlier messages I mentioned earlier. The basic case is very

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

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 11:09 AM, André Warnier [EMAIL PROTECTED] wrote: Which leads me to believe that, as such, the scheme proposed with the separate VirtualHost will not work as simply as expected. Yep, it looks like you'd need to jump through hoops to have a vhost that was able to nuke these

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

2008-12-01 Thread André Warnier
Eric Covener wrote: On Mon, Dec 1, 2008 at 11:09 AM, André Warnier [EMAIL PROTECTED] wrote: Which leads me to believe that, as such, the scheme proposed with the separate VirtualHost will not work as simply as expected. Yep, it looks like you'd need to jump through hoops to have a vhost that

[EMAIL PROTECTED] .htaccess

2008-12-01 Thread Kriss
Hi guys I am probably not talking to the right people at all but I am at the end of my tether on where to goI have updated my htaccess to ban a URL from using my bandwidth the problem is that I need to ban another one so I did what I thought I was supposed to do and all of my scripts on the

[EMAIL PROTECTED] What is the correct ETAG header?

2008-12-01 Thread Torsten Foertsch
Hi, I have a compressed and an uncompressed version of the same document on my disk. If the client sends the correct Accept-Encoding I want to send the compressed version otherwise the uncompressed. If I send the compressed version a Vary header is set. So the answer is correct. But how about

Re: [EMAIL PROTECTED] .htaccess

2008-12-01 Thread Eric Covener
On Mon, Dec 1, 2008 at 11:46 AM, Kriss [EMAIL PROTECTED] wrote: Hi guys I am probably not talking to the right people at all but I am at the end of my tether on where to goI have updated my htaccess to ban a URL from using my bandwidth the problem is that I need to ban another one so I

Re: [EMAIL PROTECTED] .htaccess

2008-12-01 Thread Kriss
This is what the file says Order Deny,Allow Deny from 80.41.61.248 RewriteEngine on RewriteCond %{HTTP_REFERER} fillbest\.com [NC] RewriteRule .* - [F] and the file is in the folder before the public_html one...I think you can tell I really am technical...LOL and the one I want to add is

Re: [EMAIL PROTECTED] achectl Not Working

2008-12-01 Thread apache123
William A. Rowe, Jr. wrote: apache123 wrote: 1. Red Hat Enterprise Linux ES release 4 (Nahant Update 6) [ apachectl working fine ] 2. Red Hat Enterprise Linux AS release 4 (Nahant) [ apachectl not working ] Why run such an absurdly old version? Try updating. I

Re: [EMAIL PROTECTED] achectl Not Working

2008-12-01 Thread apache123
Sander Temme-2 wrote: On Nov 30, 2008, at 11:02 PM, apache123 wrote: Sander Temme-2 wrote: On Nov 30, 2008, at 8:20 PM, apache123 wrote: Hi, I tried apachectl command on two Linux hosts where Apache HTTP Server is installed. The command is giving result only on one host not

Re: [EMAIL PROTECTED] .htaccess

2008-12-01 Thread Justin Pasher
Kriss wrote: This is what the file says Order Deny,Allow Deny from 80.41.61.248 RewriteEngine on RewriteCond %{HTTP_REFERER} fillbest\.com [NC] RewriteRule .* - [F] and the file is in the folder before the public_html one...I think you can tell I really am technical...LOL and the one

[EMAIL PROTECTED] Accounting cpu-time per request

2008-12-01 Thread Robin Haswell
Hi there, We're writing a load balancer system and we need to be able to log the CPU utilisation for each request. Ideally we'd like to log it to an external network service although we're open to any way of getting the per-request CPU time out of Apache. Does anyone know of any way to get

[EMAIL PROTECTED] =?UTF-8?B?UmU6RmlsZSB1cGxvYWQgdG8gQXBhY2hlIHNlcnZlciAoUE9TVCk= ?=

2008-12-01 Thread prasanthgs
Hello Andre, First, thank you very much for the reply and the effort. This list is a support list for the Apache httpd server, and people here try to accomodate even ultra-beginners with Apache/httpd. I am an ultra-beginner. After doing some google search, I had come to the understanding that

Re: [EMAIL PROTECTED] File upload to Apache server (POST)

2008-12-01 Thread Krist van Besien
On Mon, Dec 1, 2008 at 7:00 PM, [EMAIL PROTECTED] wrote: Hi All, First of all, sorry for the long mail. Gist of the mail is to know how to use the POST method for Apache server without installing Tomcat or any third party software. Basically you can't. When you POST something, you are

Re: [EMAIL PROTECTED] .htaccess

2008-12-01 Thread Kriss
Thanks I will have a go and see what happenskeep fingers crossed for me. . :-) Kriss :-) ---Original Message--- From: Justin Pasher Date: 01/12/2008 21:54:27 To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] .htaccess Kriss wrote: This is what the file says Order

[EMAIL PROTECTED] Load Module Directive in Virtual host block

2008-12-01 Thread Vinay Purohit
Hi, I have created my own apache connector and would like to load this on virtual server level in Apache 2.2.10 i.e. different connector in different virtual server host block. Since I can not place LoadModule directive inside the virtual server host block Is there any way i can get the same