trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jpe...@apache.org>
Subject Re: questions about lua plugin
Date Tue, 06 Aug 2013 16:22:07 GMT
On Aug 6, 2013, at 1:01 AM, Esmq <esmq@163.com> wrote:

> hi,all
> 
> i have two questions about lua plugin. 
> 
> 1) can lua plugin produce 301 (permanent) redirect ? 
>     i found that request:redirect(url) will only produce a 302 redirect...

This might work:
    	request:rewrite(url)
	request:reject(302)

> 
> 2) when use lua plugin to product a 302 redirect,  
> i found that it will generated a "ERR_CONNECT_FAIL/302" log entry to the log file~ but
actually , i think it is not a ERROR...

CAn you please file a bug on that?

> 
> 
> thanks


Mime
View raw message