下载nginx

修改nginx.conf

  1. server {
  2. listen 80;
  3. server_name localhost;
  4. location /demo {
  5. alias E:\\temp\\vuemb\\dist\\;
  6. index index.html index.htm;
  7. }
  8. location /jpaas {
  9. # proxy_set_header Host $host;
  10. # proxy_pass http://127.0.0.1:8002;
  11. alias /home/jpaas/front/jpaas;
  12. index index.html;
  13. try_files $uri $uri/ /jpaas/index.html;
  14. }
  15. location /api/ {
  16. proxy_set_header Host $host;
  17. proxy_pass http://127.0.0.1:9900/;
  18. }
  19. location /form {
  20. # proxy_set_header Host $host;
  21. # proxy_pass http://127.0.0.1:8080;
  22. alias /home/jpaas/front/jpaas_form;
  23. index index.html;
  24. try_files $uri $uri/ /form/index.html;
  25. }
  26. location /job {
  27. proxy_set_header Host $host;
  28. proxy_pass http://127.0.0.1:7878;
  29. }
  30. location /bpm-designer {
  31. #proxy_set_header Host $host;
  32. #proxy_pass http://127.0.0.1:8087;
  33. alias /home/jpaas/front/jpaas_bpm;
  34. index index.html;
  35. try_files $uri $uri/ /jpaas/index.html;
  36. }
  37. }
文档更新时间: 2021-03-03 11:21   作者:csx