Nginx HttpAccessModule command invalid when rewrite command existed

Igor Sysoev igor at sysoev.ru
Wed Nov 9 14:42:59 UTC 2011


On Wed, Nov 09, 2011 at 10:35:44PM +0800, li zJay wrote:
> In the following simple case:
> 
> location /entry1 {
>      allow 127.0.0.1;
>      deny all;
>      rewrite ***;
> }
> 
> the allow/deny command has no effect. Is that because rewrite command works
> in the earlier phase?

Yes, rewrites run before allow/deny.


-- 
Igor Sysoev



More information about the nginx mailing list