Server fails to start with unknown variable in log
francis at daoine.org
Sun Feb 10 16:23:30 UTC 2019
On Sun, Feb 10, 2019 at 03:49:45PM +0000, Adam wrote:
> 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 daoine.org
More information about the nginx