wodingyang commented on issue #7503:
URL: https://github.com/apache/apisix/issues/7503#issuecomment-1192059992

   config.yaml配置如下:
   `
   apisix:
     admin_key:
       - name: admin
         key: edd1c9f034335f136f87ad84b625c8f1  # using fixed API token has 
security risk, please update it when you deploy to production environment
         role: admin
     #extra_lua_path: "/home/apisix/?.lua"
   
   etcd:
     host:                           # it's possible to define multiple etcd 
hosts addresses of the same etcd cluster.
       - "http://192.168.68.114:2379";
       - "http://192.168.68.115:2379";
       - "http://192.168.68.116:2379";     # multiple etcd address, if your etcd 
cluster enables TLS, please use https scheme,
                                     # e.g. https://127.0.0.1:2379.
     prefix: /test                 # apisix configurations prefix
   
   ext-plugin:
           cmd: ['java', '-jar', '-Xmx4g', '-Xms4g', 
'/usr/local/apisix/custom_plugins/plugin-runner-0.0.1.jar']
   
   plugins:
     - log-rotate
   
   plugin_attr:
     log-rotate:
       interval: 7200    # rotate interval (unit: second)
       max_kept: 24     # max number of log files will be kept
       enable_compression: false    # enable log file compression(gzip) or not, 
default false
     redirect:
       https_port: 9443
   `
   1.将config-default.yaml中被注释的log-rotate配置放开
   2.启动apisix,调用一个请求,返回200
   3.将config-default.yaml中log-rotate配置注释(或者说是还原)
   4.在config.yaml中配置log-rotate插件
   5.重启apisix,调用同一个请求,返回404


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to