Re: [users@httpd] set up a 302 Location in ap_hook_translate_name

2014-11-23 Thread nik600
ok, it's enoug to return directly the http_status instead of OK or DECLINED. Example: apr_table_add(r-headers_out, Location, http://www.google.it;); return 302; Thanks! Bye 2014-11-23 0:27 GMT+01:00 Eric Covener cove...@gmail.com: On Sat, Nov 22, 2014 at 6:22 PM, nik600 nik...@gmail.com

[users@httpd] set up a 302 Location in ap_hook_translate_name

2014-11-22 Thread nik600
Dear all i'm using a ap_hook_translate_name custom module to process some custom logic and decide the final name of the request. in some situation i'm putting a Location: http://foo.com/mypage header with apr_table_add(r-headers_out, Location, http://foo.com/mypage;); but the HTTP_STATUS

Re: [users@httpd] set up a 302 Location in ap_hook_translate_name

2014-11-22 Thread Eric Covener
On Sat, Nov 22, 2014 at 6:22 PM, nik600 nik...@gmail.com wrote: So, i've got 3 question: - is possible to set-up in this hook a REDIRECT_STATUS 302 - if yes, how ? - if no, what is the hook to use and how can i set the http status? Check out how mod_rewrite passes itself a hint between