Caddyfile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. :9055 {
  2. root * /root/Downloads/prod/hichina2023/hichina-admin-front/dist/spa
  3. try_files {path} /index.html
  4. file_server
  5. log {
  6. output file ./hichinaadminfrontprod.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. :9051 {
  18. root * /root/Downloads/hichina2023/hichina-admin-front/dist/spa
  19. try_files {path} /index.html
  20. file_server
  21. log {
  22. output file ./hichinaadminfront.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. :8765 {
  34. root * /root/underconstruction/dist/spa
  35. try_files {path} /index.html
  36. file_server
  37. log {
  38. output file ./underconstruction.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. :9057 {
  50. encode gzip
  51. root * /root/Downloads/prod/hichina2023/hichina-main-front/dist
  52. try_files {path} /index.html
  53. file_server
  54. log {
  55. output file ./mainsiteqafrontprod.log {
  56. roll_size 1gb
  57. roll_keep 5
  58. roll_keep_for 720h
  59. }
  60. }
  61. handle_errors {
  62. rewrite * /404.html
  63. file_server
  64. }
  65. }
  66. :9053 {
  67. root * /root/Downloads/hichina2023/hichina-main-front/dist
  68. try_files {path} /index.html
  69. file_server
  70. log {
  71. output file ./mainsiteqafront.log {
  72. roll_size 1gb
  73. roll_keep 5
  74. roll_keep_for 720h
  75. }
  76. }
  77. handle_errors {
  78. rewrite * /404.html
  79. file_server
  80. }
  81. }
  82. :8011 {
  83. encode gzip
  84. root * /root/Downloads/staticresource
  85. file_server
  86. log {
  87. output file ./staticresource.log {
  88. roll_size 1gb
  89. roll_keep 5
  90. roll_keep_for 720h
  91. }
  92. }
  93. handle_errors {
  94. rewrite * /404.html
  95. file_server
  96. }
  97. }