Re: set up a 302 Location in ap_hook_translate_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <covener@xxxxxxxxx>:
On Sat, Nov 22, 2014 at 6:22 PM, nik600 <nik600@xxxxxxxxx> 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 tranlsate_name
and handler.  Or how mod_alias redirects from the fixup hook.

--
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
/*************/
nik600
http://www.kumbe.it

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux