皆さん、こんにちは!<\/P>
<\/P>
最近、私たちはインフラストラクチャ内でPortal for ArcGIS Server 10.7.1インスタンスを実装しようとしていますが、NGINXリバースプロキシサービスに関して問題に直面しています。現在、私のWindows Serverマシンでは次のアドレスを通じてPortalにアクセスできます:https:\/\/win-q0ejvg3fcqh.arcgis.local:7443\/arcgis\/home\/index.html<\/A>、しかし固定ローカルIPアドレスを使ってアクセスしようとすると:https:\/\/192.168.25.209:7443\/arcgis\/home\/index.html<\/A>、https:\/\/win-q0ejvg3fcqh.arcgis.local:7443\/arcgis\/home\/index.html<\/A>(マシン名とドメイン)にリダイレクトされてしまいます。サーバーのローカルIPアドレスからPortalにアクセスできるようにしたいのですが、それによってNGINXサーバー経由でポートをインターネットに転送したいと考えています。現在、Web Adaptorはインストールしておらず、会社の制限のためNGINXのみを使用し続けたいと思っています。どんな助けでも非常に<\/STRONG>感謝します。よろしくお願いします。<\/P><\/BODY><\/HTML>
Hi Christopher,
I managed to make it work with plain NGINX, I was missing these headers in my configuration:proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
The links you've sent were very helpful, specially the last one! Thank you very much for your help!
Hello João Victor Teófilo Salgado,
From what I understand you seem to need a method to have Portal using the private IP address for it's site configuration. This is typically done in our CloudFormation template deployments in AWS as well, and would need to be defined as a hostname.properties entry prior to site creation.
Installing Portal for ArcGIS—Portal for ArcGIS | Documentation for ArcGIS Enterprise
Additionally, there are more requirements for your NGINX and Portal configuration that are outlined in this documentation.
Configure your portal to use a reverse proxy server—Portal for ArcGIS | Documentation for ArcGIS Enterprise.
Customers tend to have the most issue with making sure the location headers in 30x responses are re-written to the WebContextURL, in my experience. When they have those issues, an easy workaround is to implement the web adaptors in front of Portal and Server and still have NGINX pass the traffic to those endpoints. If that is something you choose not to do, this information may be helpful as well.
Nginx (Reverse Proxy) and ArcGis Portal
Best of luck!
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.