nginx.conf 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. worker_processes 1;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. client_max_body_size 20m;
  11. server {
  12. listen 80;
  13. server_name 8.152.206.82;
  14. # ssl_certificate /home/nginx/html/yzbh/ssl/www.dljpwx.com.crt;
  15. # ssl_certificate_key /home/nginx/html/yzbh/ssl/www.dljpwx.com.key;
  16. # ssl_session_cache shared:SSL:1m;
  17. # ssl_ciphers HIGH:!aNULL:!MD5;
  18. # ssl_prefer_server_ciphers on;
  19. # ssl
  20. location / {
  21. root /home/nginx/html/yzbh/dist;
  22. try_files $uri $uri/ /index.html;
  23. index index.html index.htm;
  24. }
  25. # location /obs/ {
  26. # proxy_pass http://node472.com/;
  27. # }
  28. location /prod-api/{
  29. proxy_set_header Host $http_host;
  30. proxy_set_header X-Real-IP $remote_addr;
  31. proxy_set_header REMOTE-HOST $remote_addr;
  32. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  33. proxy_pass http://8.152.206.82:8040/;
  34. proxy_read_timeout 10m;
  35. proxy_cache off;
  36. }
  37. location /ezhizao-yzbh-sys/{
  38. proxy_set_header Host $http_host;
  39. proxy_set_header X-Real-IP $remote_addr;
  40. proxy_set_header REMOTE-HOST $remote_addr;
  41. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  42. proxy_pass http://8.152.206.82:8040/;
  43. proxy_read_timeout 10m;
  44. }
  45. location /ezhizao-yzbh-crm/{
  46. proxy_set_header Host $http_host;
  47. proxy_set_header X-Real-IP $remote_addr;
  48. proxy_set_header REMOTE-HOST $remote_addr;
  49. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  50. proxy_pass http://8.152.206.82:8041/;
  51. proxy_read_timeout 10m;
  52. }
  53. location /ezhizao-yzbh-entrust/{
  54. proxy_set_header Host $http_host;
  55. proxy_set_header X-Real-IP $remote_addr;
  56. proxy_set_header REMOTE-HOST $remote_addr;
  57. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  58. proxy_pass http://8.152.206.82:8042/;
  59. proxy_read_timeout 10m;
  60. }
  61. location /ezhizao-yzbh-production/{
  62. proxy_set_header Host $http_host;
  63. proxy_set_header X-Real-IP $remote_addr;
  64. proxy_set_header REMOTE-HOST $remote_addr;
  65. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  66. proxy_pass http://8.152.206.82:8043/;
  67. proxy_read_timeout 10m;
  68. }
  69. location /ezhizao-yzbh-finance/{
  70. proxy_set_header Host $http_host;
  71. proxy_set_header X-Real-IP $remote_addr;
  72. proxy_set_header REMOTE-HOST $remote_addr;
  73. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  74. proxy_pass http://8.152.206.82:8043/;
  75. proxy_read_timeout 10m;
  76. }
  77. location /ezhizao-yzbh-financial/{
  78. proxy_set_header Host $http_host;
  79. proxy_set_header X-Real-IP $remote_addr;
  80. proxy_set_header REMOTE-HOST $remote_addr;
  81. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  82. proxy_pass http://8.152.206.82:8044/;
  83. proxy_read_timeout 10m;
  84. }
  85. error_page 500 502 503 504 /50x.html;
  86. location = /50x.html {
  87. root html;
  88. }
  89. }
  90. }