Server fails to start with unknown variable in log

Francis Daly francis at
Sun Feb 10 16:23:30 UTC 2019

On Sun, Feb 10, 2019 at 03:49:45PM +0000, Adam wrote:

Hi there,

> Performing sanity check on nginx configuration:
> nginx: [emerg] unknown "allow_visit" variable
> nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

> So I ran:
> cat /usr/local/etc/nginx/nginx.conf | grep "allow_visit"
> with no result at all.

There may be other files "include"d from your nginx.conf.

> any pointers would help.

  nginx -T | grep -e 'configuration file\|allow_visit'

should show the mention of allow_visit; the previous configuration file
name is the one that uses it.

Francis Daly        francis at

More information about the nginx mailing list