default 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. server {
  2. listen 80;
  3. server_name 121.40.93.243; #改成对应的HOST
  4. location / {
  5. root /usr/share/nginx/html;
  6. index index.html;
  7. try_files $uri $uri/ /index.html;
  8. }
  9. location /Bug {
  10. proxy_pass http://crowd-service-backend-api;
  11. }
  12. location ^~ /dashboard/ {
  13. root /usr/share/nginx/html;
  14. index index.html;
  15. }
  16. location ^~ /static/ {
  17. root /usr/share/nginx/html/dashboard;
  18. index index.html;
  19. }
  20. location /QC {
  21. proxy_pass http://121.40.93.243:8080;
  22. }
  23. location /var {
  24. root /;
  25. index index.html index.htm;
  26. }
  27. # location ^~ /document/ {
  28. # alias /back_end/document/; # 文件存放目录,注意要以 '/' 结尾;
  29. # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
  30. # autoindex on; # 自动列出目录下的文件;
  31. # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
  32. # }
  33. # location ^~ /resourceXinchuang/ {
  34. # alias /Users/hannatao/Downloads/; # 文件存放目录,注意要以 '/' 结尾;
  35. # index index.html; # 如果文件存放目录有 index.html,会跳转到 index.html;
  36. # autoindex on; # 自动列出目录下的文件;
  37. # autoindex_exact_size off; # 文件大小按 G、M 的格式显示,而不是 Bytes;
  38. # }
  39. }