Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Nginxをリバースプロキシサーバーとして使用し、リクエストをバックエンドアップストリームに転送します。 すべてのバックエンドアップストリームは実際にはApache2のNameVirtualHostであり、同じホストにあります。 上記のVirtualHostsによって実行されるBashで記述された単純なcgiプログラムがあります。私の質問は、このcgiスクリプトが現在実行されているVirtualHost名を取得する方法はありますか?ありがとうございました!