如果您在没有使用集成Windows身份验证(IWA)的ArcGIS企业平台上安装本地Survey123网站的情况下使用Survey123,则可能已经注意到 IWA 的登录过程并不总是顺利进行的。使用正确的配置安装本地部署的Survey123网站,将通过IWA为Survey123提供更可预测的登录体验。

按照以下步骤使用 IWA 在本地(物理或虚拟机)服务器上配置 Survey123 网站。此配置还将允许使用内置门户帐户登录。Survey123 网站必须安装在已安装和配置了 ArcGIS Portal 的计算机上。

配置步骤

  1. 运行 Survey123 网站安装程序(必须从 My ESRI 下载)
  2. 在此位置创建 config.json 文件的备份/副本:C:\Program Files\ ArcGIS\ Survey123Website
  3. 在 ArcGIS REST API 上查看 Portal CORS。如果未列出 URL,则可以继续安装。
  4. 登录门户,前往 “组织” > “设置” > “安全” > “允许来源”。
  5. 在 wwwroot 文件夹 (C:\inetpub\wwwroot) 中,创建名为的文件夹 survey123
  6. survey123 文件夹,创建一个名为的文件 网络配置 然后粘贴以下内容:
1<?xml version="1.0" encoding="UTF-8"?>2<configuration>3    <system.webServer>4        <rewrite>5            <rules>6                <clear />7                <rule name="ReverseProxyHTML" 
stopProcessing="false">8                    <match url="(^$|.*\.html$)" />9                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />10                    <action type="Rewrite" 
url="http://localhost:5080/{R:1}" />11                    <serverVariables>12                        <set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />13                        <set 
name="HTTP_ACCEPT_ENCODING" value="" />14                    </serverVariables>15                </rule>16                <rule name="ReverseProxyInboundRule1" stopProcessing="true">17                    <match 
url="(.*)" />18                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />19                    <action type="Rewrite" url="http://localhost:5080/{R:1}" />20                </rule>21            
		</rules>22            <outboundRules>23                <rule name="update base tag" preCondition="isHTML">24                    <match filterByTags="Base" pattern="^/(.*)" />25                    
    <action type="Rewrite" value="/survey123/" />26                    <conditions trackAllCaptures="false">27                        <add input="{URL}" pattern="/" />28                    </conditions>29                
    	</rule>30                <preConditions>31                    <preCondition name="isHTML">32                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />33                    
    </preCondition>34                </preConditions>35            </outboundRules>36        </rewrite>37    </system.webServer>38</configuration>39Convert survey123 folder to an application in IIS (right click folder)

  1. 安装 IIS 的 URL 重写模块(可在此处下载: https://www.iis.net/downloads/microsoft/url-rewrite)
  2. 在 URL 重写操作窗格中,单击 查看服务器变量。如果以下变量已经存在,请跳到步骤 9。
  3. 单击 “添加” 并添加三个变量
    • HTTP_ACCEPT_编码
    • HTTP_X_ORIGINAL_ACCEPT_ENCODING
    • HTTP_X_ORIGINAL_HOST
  4. 向操作下的 URL 重写模块添加规则(这些规则应继承自 web.config 文件)
    • 选择入站空白规则
    • 创建第二个入站空白规则
    • 添加空白出站规则
    • IIS 重写现在应该有这些规则
  1. 安装 IIS 应用程序请求路由模块。
    • 此外,请确保在 Web 服务器上安装了 IIS 应用程序请求路由模块。安装完成后,启用代理功能,因为代理功能在默认情况下处于禁用状态:
    • 在 Web 服务器上打开 IIS 管理器,
    • 从左侧的树视图中选择您的服务器。
    • 双击 “应用程序请求路由”。
    • 从右侧的 “操作” 窗口中选择 “服务器代理设置”。
    • 选中 “启用代理” 复选框,然后单击 “应用”。
  2. 为 IWA 执行安装后操作
    • 门户网站网址:https://{yourportalurl}/portal
    • 输入管理员凭据
    • 保留 JavaScript URL
    • 将端口保留为默认端口
    • 选择 SSL 证书类型(pfx 需要已知密码)
    • 添加所需的 survey123 网址:https://{yourportalurl1]/survey123

安装后设置了上面列出的所有内容,但需要ArcGIS Enterprise管理员手动添加Survey123网站托管网址 https: //:5443 <survey123website.domain >作为重定向到门户网站以允许登录。要做到这一点:

  1. 登录门户管理员 REST 界面,例如:
  2. https://portal_webadaptorhost.domain/portal_webadaptorname/portaladmin
  3. 前往 “安全” > “OAuth” > “获取应用程序信息”,然后输入应用程序 ID survey123hub,然后单击 “获取应用程序信息”。
  4. 复制响应的内容。
  5. 返回 OAuth,这一次,转到 “更新应用程序信息”。
  6. 将复制的回复粘贴到输入框中,确保将用于访问 Survey123 网站的网址添加到 Redirecturis 列表中,然后单击 “更新应用程序”。

如果你打算设置反向代理接入点,这很可能包括反向代理接入点,例如:https://survey123website.domain/survey123

  1. 重复第 2 步,确认您的其他 RedirectURI 已成功添加到列表中。
  2. 可以通过以下链接访问 Survey123 网站: https://{yourportalurl}/survey123/
  3. 网站配置已完成!

Unlock the Ultimate Guide to IBM Maximo Application Suite (MAS)

Discover everything you need to know to modernize your asset management strategy.

Inside, you’ll learn:

  • What’s new in IBM Maximo Application Suite 9.0
  • Key differences between Maximo 7.6 and MAS
  • How AppPoints and OpenShift change the game
  • Industry use cases across energy, manufacturing, and transportation
  • Step-by-step guidance for upgrading and migration readiness
Cover of 'The Ultimate Guide to MAS Maximo Application Suite' by Naviam featuring a man in a yellow construction helmet and safety vest holding a tablet.
×

ActiveG, BPD Zenith, EAM Swiss, InterPro Solutions, Lexco, Peacock Engineering, Projetech, Sharptree, and ZNAPZ have united under one brand: Naviam.

You’ll be redirected to the most relevant page at Naviam.io in a few seconds — or you can go now.

Read Press Release