Re: [us...@httpd] how to debug a module?

2009-03-06 Thread anson ho
I use fprintf(stderr,"a debug message"); It is stupid but it works in all platforms. On Fri, Mar 6, 2009 at 5:37 PM, robert rottermann wrote: > Hi there, > > please forgive me if this sounds stupid.. > > There is an apache modul I do not unterstand > therefore I would like to load it in a debug

Re: [us...@httpd] Adding headers based on Content-Type

2009-03-04 Thread anson ho
I've faced a similar problem before. The answer is that there is no easy solution with existing apache module. I need to write an apache module myself to solve the problem. My idea is come from mod_trace_output which can capture output (both headers & content) from another handler. But it doesn't w

Re: [us...@httpd] Capturing server response

2009-02-06 Thread anson ho
ave already switched to Apache > 2.0.x. > > BTW, where the actual code of handlers and filters is supposed to be > deployed? I'm afraid the documentation omits this, perhaps, assuming it's > trivial. > > ------ > From: "an

Re: [us...@httpd] Capturing server response

2009-02-06 Thread anson ho
mod_trace_output do exactly what you want, except that headers are not saved. But you can do it by myself with the source included. http://trace-output.sourceforge.net/ On Mon, Feb 2, 2009 at 2:56 AM, Solutio at Gmail wrote: > Thank you for the advice and introduction to the forum rules. I "low

[us...@httpd] need explanation for mod_gzip

2009-02-01 Thread anson ho
As I need to rewrite the response headers and body that were returned from another module in apache 1.3, I've tried to find the solutions over weeks and finally found that mod_gzip do the similiar job. In "The handling of modules by Apache 1.3" section of mod_gzip installation web page (http://sc

Re: [us...@httpd] content handler question

2009-01-23 Thread anson ho
module. If the mod_headers liked approach don't work, I will try the proxy solution. Or anyone has other great alternative? Thanks On Sat, Jan 24, 2009 at 1:14 AM, Matt McCutchen wrote: > On Sat, 2009-01-24 at 00:09 +0800, anson ho wrote: >> I have no way to upgrade apache as the cont

Re: [us...@httpd] content handler question

2009-01-23 Thread anson ho
that new headers will be created depending on existing headers. On Fri, Jan 23, 2009 at 9:51 PM, Brian Mearns wrote: > On Fri, Jan 23, 2009 at 8:47 AM, anson ho wrote: >> One more to mention is, I am using apache 1.3. >> >> Thanks >> >> On Fri, Jan 23, 2009 at

Re: [us...@httpd] content handler question

2009-01-23 Thread anson ho
One more to mention is, I am using apache 1.3. Thanks On Fri, Jan 23, 2009 at 9:27 PM, anson ho wrote: > Can you give me more hint as I am pretty new to apache > > Thanks > > On Fri, Jan 23, 2009 at 9:18 PM, Eric Covener wrote: >> On Fri, Jan 23, 2009 at 8:15 AM, anson

Re: [us...@httpd] content handler question

2009-01-23 Thread anson ho
Can you give me more hint as I am pretty new to apache Thanks On Fri, Jan 23, 2009 at 9:18 PM, Eric Covener wrote: > On Fri, Jan 23, 2009 at 8:15 AM, anson ho wrote: >> So, is there a way to chain the content handler, so that different >> content handlers can be processed one

Re: [us...@httpd] content handler question

2009-01-23 Thread anson ho
So, is there a way to chain the content handler, so that different content handlers can be processed one by one. Thanks again On Fri, Jan 23, 2009 at 9:09 PM, Eric Covener wrote: > On Fri, Jan 23, 2009 at 7:57 AM, anson ho wrote: >> If I have different content handlers set in serve

[us...@httpd] content handler question

2009-01-23 Thread anson ho
If I have different content handlers set in server context and location context. Will both handler get processed? If so, what is the process sequence? Thanks - The official User-To-User support forum of the Apache HTTP Server Pro

Re: [us...@httpd] How to combine multiple set-cookie headers into one?

2009-01-15 Thread anson ho
below My-Cookie: key2=Another unknown string Please advise. Anson On Mon, Jan 5, 2009 at 10:19 AM, Morgan Gangwere <0.fracta...@gmail.com>wrote: > anson ho wrote: > >> Hi Morgan, >> Thanks for your reply. >> >>The case is t

Re: [us...@httpd] How to combine multiple set-cookie headers into one?

2009-01-04 Thread anson ho
s the only option. I've read that mod_header.so can change the headers, and I've tried but no success. So I want to someone to point me to the correct direction. I am pretty new to apache web server administration. Anson Ho On Mon, Jan 5, 2009 at 12:29 AM, Morgan Gangwere <0.fracta...@gm

[us...@httpd] How to combine multiple set-cookie headers into one?

2009-01-01 Thread anson ho
How can I combine multiple set-cookie headers into one header? I have tried mod_headers.so but no success. Below is what I have done. Header append Set-Cookie ^key1 Header append Set-Cookie ^key2 Please advise.