将IIS URL从另一个根服务器重写到目录

将IIS URL从另一个根服务器重写到目录,iis,url-rewriting,Iis,Url Rewriting,我有一个npm服务器,可以使用ArcGIS Experience Builder()开发一些应用程序 我想将其部署到web服务器上,以便与同事共享环境 在这个服务器上我有IIS,我想用它作为反向代理来访问它 当我们启动npm服务器和客户端时,可以在https::/localhost:3001/上访问它,但都在根文件夹上 访问页面位于:https://localhost:3001/page/set-波塔勒尔 摘要正在播放https://localhost:3001/ 德夫在https://loc

我有一个npm服务器,可以使用ArcGIS Experience Builder()开发一些应用程序

我想将其部署到web服务器上,以便与同事共享环境

在这个服务器上我有IIS,我想用它作为反向代理来访问它

当我们启动npm服务器和客户端时,可以在https::/localhost:3001/上访问它,但都在根文件夹上

  • 访问页面位于:https://localhost:3001/page/set-波塔勒尔
  • 摘要正在播放https://localhost:3001/
  • 德夫在https://localhost:3001/builder?...
我尝试添加以下规则:

 <rule name="ArcGIS Experience" stopProcessing="true">
  <match url="^ArcgisExperience(\/?|(\/+.*))$" />
  <action type="Rewrite" url="https://localhost:3001{R:1}" logRewrittenUrl="true" />
 </rule>    

我会自动重定向到,这是npm服务器上的访问页面。。。我想要


我怎样才能做到这一点?

你可以参考官方网站:我尝试过,但我认为它修改了我的url,忘记了文件夹。只需在重写规则中包含你的文件路径,就可以正确到达网页,或者你想实现其他情况。
 <rule name="ArcGIS Experience" stopProcessing="true">
  <match url="^ArcgisExperience(\/?|(\/+.*))$" />
  <action type="Rewrite" url="https://localhost:3001/{R:1}" logRewrittenUrl="true" />
 </rule>