Question about request_body and redirect

Weibin Yao nbubingo at
Wed Aug 19 14:00:27 MSD 2009

quan nexthop at 2009-8-19 17:33 wrote:
> Other issue:
> I want to redirect some unsafe URLs to different safe URL, like 
> redirect to
>  rediect to 
> 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 

You can return the request with 301 or use the Nginx's proxy_pass directive.

Weibin Yao

More information about the nginx mailing list