Re: one question about HTTP response header Content-Length

2012-03-16 Thread Rui Hu
other hooks. Output filters run after content generation. If you can be the last output filter, you should have that value in the headers out table. Joe -- Http://www.silverhawk.net/ On Mar 15, 2012 9:22 PM, Rui Hu tchrb...@gmail.com wrote: hi, I have a private module which want to get

Re: one question about HTTP response header Content-Length

2012-03-16 Thread Rui Hu
-lewis.com On 3/16/12 12:31 AM, Rui Hu wrote: I have another question. I found that not every request's response header has field of Content-Length, is it normal? That depends on what normal is. You are probably looking at what the content generators have provided, and the generators don't

one question about HTTP response header Content-Length

2012-03-15 Thread Rui Hu
-- Best regards, Rui Hu State Key Laboratory of Networking Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN: tchrb...@gmail.com -

problems about mod_fastcgi

2012-03-06 Thread Rui Hu
on this information. Thanks! Vic -- Best regards, Rui Hu State Key Laboratory of Networking Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN: tchrb...@gmail.com -

Re: problems about mod_fastcgi

2012-03-06 Thread Rui Hu
be ignored in my own module. Is there any way to recognize it? Many thanks! Vic 2012/3/7 Rui Hu tchrb...@gmail.com hi, I am writing a module whose function depends on variable r-uri. But r-uri is modified when I activate mod_fastcgi. 1. I just want to make sure whether mod_fastcgi modified r

Re: about setting r-headers_out

2012-02-29 Thread Rui Hu
Thanks! I tried to hook handler and it works well. Rui Hu 2012/2/29 Sorin Manolache sor...@gmail.com On 02/29/12 07:52, Rui Hu wrote: hi, I want to set Content-Type and Cache-Control fields in my private module. So I hooked fixups and used apr_table_setn to set r-headers_out but nothing

one problem when calling ap_get_module_config

2012-02-29 Thread Rui Hu
this function? Thanks! Best regards, Rui Hu State Key Laboratory of Networking Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN: tchrb...@gmail.com -

Re: one problem when calling ap_get_module_config

2012-02-29 Thread Rui Hu
thanks! Problem solved. It the problem with internal redirects. 2012/2/29 Nick Kew n...@apache.org On 29 Feb 2012, at 10:47, Rui Hu wrote: I use r-request_config to store module data as a substitute for global vars. One type_checker_hook function uses ap_get_module_config at its

about setting r-headers_out

2012-02-28 Thread Rui Hu
hi, I want to set Content-Type and Cache-Control fields in my private module. So I hooked fixups and used apr_table_setn to set r-headers_out but nothing happened. Was it thought through? Thanks for you help! Best regards, Rui Hu

Re: can't compile module with apxs

2012-02-28 Thread Rui Hu
Thanks for your advice :-) Rui Hu 2012/2/27 Nick Kew n...@webthing.com On Mon, 27 Feb 2012 17:13:52 +0800 Rui Hu tchrb...@gmail.com wrote: Should I add some compile parameters in apxs? No, but you should probably have posted to the modules-dev list rather than here. It's

can't compile module with apxs

2012-02-27 Thread Rui Hu
added this code line. Error message is : core_reqeust_config reqconf core_module undeclared. Should I add some compile parameters in apxs? Thanks! -- Best regards, Rui Hu State Key Laboratory

About setting r-headers_out structure

2012-02-27 Thread Rui Hu
hi, I wrote a module which adds its own field to the HTTP response header by setting r-headers_out. But nothing happened, I printed out all response headers but cannot find the filed I set before. This happens in hook fixups. What's wrong with it? Thanks! -- Best regards, Rui Hu

one problem processing config file

2012-02-22 Thread Rui Hu
be implemented in one module, should I also modified Apache core? Thanks! Best regards, Rui Hu State Key Laboratory of Networking Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN

Re: questions about rewrite module

2011-12-26 Thread Rui Hu
config in fastcgi or inevitable problem by using it? Really appreciate your help. Vic -- Best regards, Rui Hu State Key Laboratory of Networking Switching Technology Beijing

questions about rewrite module

2011-12-19 Thread Rui Hu
/cgi-bin/php.fcgi/1000/test.php was not found on this server. I don't know if this error results from fastcgi, is it the inappropriate config in fastcgi or inevitable problem by using it? Really appreciate your help. Vic -- Best regards, Rui Hu

questions about document_root

2011-12-07 Thread Rui Hu
, Rui Hu State Key Laboratory of Networking Switching Technology Beijing University of Posts and Telecommunications(BUPT) MSN: tchrb...@gmail.com -

Re: questions about document_root

2011-12-07 Thread Rui Hu
the detailed process generating $DOCUMENT_ROOT in $_SERVER from apache to php. Thank you very much! 2011/12/7 Nick Kew n...@webthing.com On 7 Dec 2011, at 10:54, Rui Hu wrote: Hi, I want to modify apache core to implement a function which can achieve following expectations: That's a simple task

Re: questions about document_root

2011-12-07 Thread Rui Hu
2011/12/8 Rui Hu tchrb...@gmail.com Is $DOCUMENT_ROOT in php-cgi determined by ap_add_common_vars() in Apache? It seems not to me. I commented the line 237 assigning DOCUMENT_ROOT and re-compiled apache. php-cgi still works fine. It seems that $DUCUMENT_ROOT in php-cgi is not determined