迁移新平台,移植红墩界
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nginx.conf 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. upstream api{
  2. server 112.33.111.160:8081;
  3. }
  4. upstream bm{
  5. server 112.33.111.160:8085;
  6. }
  7. upstream pneumatic{
  8. server 112.33.111.160:8085;
  9. }
  10. upstream system{
  11. server 112.33.111.160:8085;
  12. }
  13. upstream pur{
  14. server 112.33.111.160:8085;
  15. }
  16. server {
  17. listen 80;
  18. listen [::]:80;
  19. server_name localhost;
  20. # access_log /var/log/nginx/host.access.log main;
  21. location /api/ {
  22. proxy_pass http://api;
  23. }
  24. location /bm/ {
  25. proxy_pass http://bm;
  26. }
  27. location /pneumatic/ {
  28. proxy_pass http://pneumatic;
  29. }
  30. location /system/ {
  31. proxy_pass http://system;
  32. }
  33. location /pur/ {
  34. proxy_pass http://pur;
  35. }
  36. location / {
  37. root /usr/share/nginx/html;
  38. index index.html index.htm;
  39. }
  40. #error_page 404 /404.html;
  41. # redirect server error pages to the static page /50x.html
  42. #
  43. error_page 500 502 503 504 /50x.html;
  44. location = /50x.html {
  45. root /usr/share/nginx/html;
  46. }
  47. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  48. #
  49. #location ~ \.php$ {
  50. # proxy_pass http://127.0.0.1;
  51. #}
  52. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  53. #
  54. #location ~ \.php$ {
  55. # root html;
  56. # fastcgi_pass 127.0.0.1:9000;
  57. # fastcgi_index index.php;
  58. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  59. # include fastcgi_params;
  60. #}
  61. # deny access to .htaccess files, if Apache's document root
  62. # concurs with nginx's one
  63. #
  64. #location ~ /\.ht {
  65. # deny all;
  66. #}
  67. }