nginx-devel Digest, Vol 58, Issue 34

Maxim Dounin mdounin at
Tue Aug 26 12:20:10 UTC 2014


On Tue, Aug 26, 2014 at 03:09:44PM +0300, Donatas Abraitis wrote:

> Hey, Maxim,
> after trying to change to NGX_DONE or NGX_HTTP_FORBIDDEN in static
> ngx_int_t ngx_http_hostprotect_init(ngx_conf_t *cf), I got this when doing
> nginx restart:

You have to change the access phase handler code (that is, the 
ngx_http_hostprotect_handler() function), not init handler of your 

A side note: please make sure to never reply to mailing list 
digests.  It breaks threads and looses context.  Also, top-posting 
isn't a good idea.  Thank you.

Maxim Dounin

More information about the nginx-devel mailing list