报错信息:

nginx: [emerg] "referer_hash_max_size" directive is not allowed here in /usr/local/openresty/nginx/conf/nginx.conf:25
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed

    默认是加载这个模块的.

    referer_hash_max_size, 只能在 server 和 location 下使用

    Syntax: referer_hash_max_size size;
    Default:
    referer_hash_max_size 2048;
    Context: server, location
    This directive appeared in version 1.0.5.

      Write a Reply...