参考:https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/

Use the try_files directive to filter out the problem condition:

location ~* \.php$ {
    try_files $uri =404;
    fastcgi_pass backend;
    # [...]
}

sendfile

有关视频的配置
https://segmentfault.com/q/1010000003055006/a-1020000003064578

location /video/ {
    sendfile on;
    sendfile_max_chunk 256k; 
    aio threads;
    directio 512k;
    output_buffers 1 128k;
}

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2021-06-16
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
猜你喜欢
  • 2021-12-07
  • 2021-04-02
  • 2021-08-18
  • 2022-01-16
  • 2022-01-10
  • 2022-01-29
相关资源
相似解决方案