Question about request_body and redirect

quan nexthop quan.nexthop at gmail.com
Wed Aug 19 15:24:16 MSD 2009


Weibin:
thank a lots
NextHop.
On Wed, Aug 19, 2009 at 6:00 PM, Weibin Yao <nbubingo at gmail.com> wrote:

> quan nexthop at 2009-8-19 17:33 wrote:
>
>> Other issue:
>> I want to redirect some unsafe URLs to different safe URL, like
>> http://www.abc.com/a.index redirect to http://www.1234.com/a.index
>> http://www.abc.com/b.index  rediect to http://www.5566.com/b.index  I use
>>  the function: ngx_http_internal_redirect() to implementate,  but I always
>> get a crash.
>> Any idea about these ?
>>
>>
> ngx_http_internal_redirect() can  just redirect the request in the same
> host.
>
> You can return the request with 301 or use the Nginx's proxy_pass
> directive.
>
> --
> Weibin Yao
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090819/a4d8ffa1/attachment.html>


More information about the nginx mailing list