You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当我们在nginx.conf启用日志按日期写入的时候,就会报错“[error] 101#0: *101 testing "/usr/local/nginx/html" existence failed (2: No such file or directory) while logging request,”。
原因是ngx_http_log_module模块会检查root配置目录是否存在。
具体参考:ngx_http_log_module 中
“during each log write the existence of the request’s root directory is checked, and if it does not exist the log is not created. It is thus a good idea to specify both root and access_log on the same configuration level:”
所以建议在镜像脚本中建立/usr/local/nginx/html目录
Why is it needed?
No response
The text was updated successfully, but these errors were encountered:
What would you like to be added or improved?
当我们在nginx.conf启用日志按日期写入的时候,就会报错“[error] 101#0: *101 testing "/usr/local/nginx/html" existence failed (2: No such file or directory) while logging request,”。
原因是ngx_http_log_module模块会检查root配置目录是否存在。
具体参考:ngx_http_log_module 中
“during each log write the existence of the request’s root directory is checked, and if it does not exist the log is not created. It is thus a good idea to specify both root and access_log on the same configuration level:”
所以建议在镜像脚本中建立/usr/local/nginx/html目录
Why is it needed?
No response
The text was updated successfully, but these errors were encountered: