6

lighttpd でプロキシ/リライトをセットアップする必要があります。

私は、http 2つの異なるWebアプリパスを介して提供するserver1を持っています:

* http://server1/path1
* http://server1/path2

また、server1の前にlighttpdサーバーがあります

2 つのパスのそれぞれが異なるドメインのルート パスとして提供されるように、lighttpd で書き換えおよび/またはプロキシをセットアップしたい:

* requests to http://server2.com/* are proxied/rewrited to http://server1/path1/*
* requests to http://server3.com/* are proxied/rewrited to http://server1/path2/*

重要:

  • server2.com と server3.com は、http 経由でのみserver1 にアクセスできます
  • リダイレクトはオプションではありません。server2.com と server3.com のユーザーは、実際の Web アプリが server1 の異なるパスから提供されていることを知らないはずです。

出来ますか?

4

1 に答える 1