異なる Nexus サーバーに転送する 2 つの Apache ProxyPass ルールを設定しようとしています。私が欲しいのは:
http://mainserver/nexus
->http://server1:8080/nexus
と
http://mainserver/nexus-pro
->http://server2:8081/nexus
元のサーバーで動作するようにセットアップしましたが、2 番目のルールを追加すると、nexus-pro の要求が /nexus を使用してメインの apache サーバーにリダイレクトされ、それが間違ったサーバーに転送されるため、次のようになります。
http://mainserver/nexus-pro
-> http://mainserver/nexus
->http://server1:8080/nexus
これは Nexus 自体が行っていることだと思いますが、実際には制御できません。
これが私の現在の Apache 設定です。何を変更する必要がありますか?
ProxyPass /nexus http://server1:8080/nexus
ProxyPassReverse /nexus http://server1:8080/nexus
ProxyPass /nexus-pro http://server2:8081/nexus
ProxyPassReverse /nexus-pro http://server2:8081/nexus
ProxyPreserveHost On