Question about request_body and redirect

Weibin Yao nbubingo at gmail.com
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 
>  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






More information about the nginx mailing list