Angular App running on nginx and behind an additional nginx reverse proxy

前端 未结 2 970
一个人的身影
一个人的身影 2020-12-17 14:23

I\'m currently trying to create a reverse proxy for two Angular apps. I want the apps to be both accessible through the 443 port of the docker host with SSL enabled (like ht

2条回答
  •  清酒与你
    2020-12-17 15:14

    the problem is: 8080 and 8081 containers can open resources like localhost:8080/styles.css or localhost:8080/bundle.js. but with current configuration they get localhost:8080/app1/styles.css requests instead. try adding rewrite /?app1/(.*)$ /$1 break; rule to reverse proxy, so they would get right requests

提交回复
热议问题