user    root;

 

location ~ \.(mp4|png|txt) {
root /home/xxxx/yyyy/zzzz;
autoindex on;

}


location / {
proxy_pass http://127.0.0.1:8080/zzzz/;
index index.html index.htm;
}


error_page 404 /404.html;
location = /404.html {
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2022-02-09
  • 2022-02-04
  • 2021-07-09
  • 2021-07-20
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-11-04
  • 2022-02-07
  • 2022-02-05
相关资源
相似解决方案