Caddyfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. :9051 {
  2. root * /root/Downloads/hichina2023/hichina-admin-front/dist/spa
  3. try_files {path} /index.html
  4. file_server
  5. log {
  6. output file ./hichinaadminfront.log {
  7. roll_size 1gb
  8. roll_keep 5
  9. roll_keep_for 720h
  10. }
  11. }
  12. handle_errors {
  13. rewrite * /404.html
  14. file_server
  15. }
  16. }
  17. :8765 {
  18. root * /root/underconstruction/dist/spa
  19. try_files {path} /index.html
  20. file_server
  21. log {
  22. output file ./underconstruction.log {
  23. roll_size 1gb
  24. roll_keep 5
  25. roll_keep_for 720h
  26. }
  27. }
  28. handle_errors {
  29. rewrite * /404.html
  30. file_server
  31. }
  32. }
  33. :9053 {
  34. root * /root/Downloads/hichina2023/hichina-main-front/dist
  35. try_files {path} /index.html
  36. file_server
  37. log {
  38. output file ./mainsiteqafront.log {
  39. roll_size 1gb
  40. roll_keep 5
  41. roll_keep_for 720h
  42. }
  43. }
  44. handle_errors {
  45. rewrite * /404.html
  46. file_server
  47. }
  48. }
  49. :8011 {
  50. encode gzip
  51. root * /root/Downloads/staticresource
  52. file_server
  53. log {
  54. output file ./staticresource.log {
  55. roll_size 1gb
  56. roll_keep 5
  57. roll_keep_for 720h
  58. }
  59. }
  60. handle_errors {
  61. rewrite * /404.html
  62. file_server
  63. }
  64. }