当前位置:   article > 正文

springboot整合进Nginx_springboot 集成内部nginx

springboot 集成内部nginx
  1. server {
  2. listen 80;
  3. server_name www.didiok.com;
  4. access_log logs/book.log;
  5. error_log logs/book.error;
  6. #将http://www.didiok.com/wx-service请求转发给http://127.0.0.1:8011/wx-service处理
  7. location /wx-service {
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10. proxy_pass http://127.0.0.1:8011/wx-service;
  11. }
  12. #将http://www.didiok.com/bootdo请求转发给http://127.0.0.1:8012/bootdo处理
  13. location /bootdo {
  14. proxy_set_header Host $host;
  15. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16. proxy_pass http://127.0.0.1:8012/bootdo;
  17. }
  18. #将/xcloud-service请求转发给http://127.0.0.1:8013/xcloud-api处理
  19. location /xcloud-service {
  20. proxy_set_header Host $host;
  21. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22. proxy_pass http://127.0.0.1:8013/xcloud-api;
  23. }
  24. #将/eureka-service请求转发给http://127.0.0.1:8081/eureka-service处理
  25. locatio
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/640087
推荐阅读
相关标签
  

闽ICP备14008679号