1. server {
    2. listen 8000;
    3. server_name localhost;
    4. location / {
    5. root /usr/share/nginx/feedflow/html/dist;
    6. index index.html index.htm;
    7. }
    8. error_page 500 502 503 504 /50x.html;
    9. location = /50x.html {
    10. root /usr/share/nginx/html;
    11. }
    12. }
    13. server {
    14. listen 8001;
    15. server_name localhost;
    16. location / {
    17. root /usr/share/nginx/adminWeb/html/dist;
    18. index index.html index.htm;
    19. }
    20. error_page 500 502 503 504 /50x.html;
    21. location = /50x.html {
    22. root /usr/share/nginx/html;
    23. }
    24. }
    25. server {
    26. listen 8002;
    27. server_name localhost;
    28. location / {
    29. root /usr/share/nginx/dueOfficialWeb/html/dist;
    30. index index.html index.htm;
    31. try_files $uri $uri/ /index.html;
    32. }
    33. error_page 500 502 503 504 /50x.html;
    34. location = /50x.html {
    35. root /usr/share/nginx/html;
    36. }
    37. }
    38. server {
    39. listen 80;
    40. server_name www.dueoffical.com;
    41. location / {
    42. proxy_pass http://localhost:8002;
    43. proxy_set_header Host $host;
    44. proxy_set_header X-Real-IP $remote_addr;
    45. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    46. }
    47. }
    48. server {
    49. listen 8003;
    50. server_name localhost;
    51. location / {
    52. root /usr/share/nginx/hxwbOfficialWeb/html/dist/prod;
    53. index index.html index.htm;
    54. try_files $uri $uri/ /index.html;
    55. }
    56. error_page 500 502 503 504 /50x.html;
    57. location = /50x.html {
    58. root /usr/share/nginx/html;
    59. }
    60. }
    61. server {
    62. listen 80;
    63. server_name www.huaxiawanbang.com;
    64. location / {
    65. proxy_pass http://localhost:8003;
    66. proxy_set_header Host $host;
    67. proxy_set_header X-Real-IP $remote_addr;
    68. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    69. }
    70. }