tv.xxx.com/voice请求时需跳转至:tv.xxx.com/zongyi/zt2015/haoshengyin/index.shtml

目录结构:

Nginx配置location跳转后偶尔出现404

nginx服务器配置:

location ~ /voice {
  rewrite /voice /zongyi/zt2015/haoshengyin/index.shtml last;
}

这样当访问tv.xxx.com/voice时,能跳转到/zongyi/zt2015/haoshengyin/index.shtml。

但这样有一个问题,偶尔会出现404.

查看日志:

显示,xxx/www/www/voice 文件夹不存在。

建立了一个空的voice目录后,不在报404错误了。具体原因不明??

相关文章:

  • 2020-03-27
  • 2021-10-07
  • 2021-08-10
  • 2022-01-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-05-29
相关资源
相似解决方案