小编Que*_*lin的帖子

Vue JS 刷新页面时出现 404 Not found

当我刷新托管在 Azure Web APP(IIS 服务器)中的 Vue JS 应用程序中的任何页面(默认网页除外)时,我收到错误“404 未找到”index.html

\n

我已经web.config根据 VueJs 官方文档添加了这个重写配置:

\n
    <rule name="Handle History Mode and custom 404/500" stopProcessing="true">\n        <match url="(.*)" />\n        <conditions logicalGrouping="MatchAll">\n            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />\n            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />\n        </conditions>\n        <action type="Rewrite" url="/" />\n    </rule>                   \n
Run Code Online (Sandbox Code Playgroud)\n

这是我的web.conf文件:

\n
    <configuration>\n        <system.webServer>\n            <rewrite>\n                <rules>\n                     <rule name="Handle History Mode and custom 404/500" stopProcessing="true">\n                       <match url="(.*)" />\n                      <conditions logicalGrouping="MatchAll">\n                         <add input="{\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8bREQUEST_FILENAME}\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b" matchType="IsFile" negate="true" />\n                         <add input="{\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8bREQUEST_FILENAME}\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b\xe2\x80\x8b" matchType="IsDirectory" negate="true" />\n                      </conditions>\n …
Run Code Online (Sandbox Code Playgroud)

iis vue.js azure-web-app-service

6
推荐指数
1
解决办法
2125
查看次数

Azure Key Vault 不允许通过专用终结点连接进行访问

我有一个天蓝色的网络服务(linux)和天蓝色的密钥保管库。

我配置了两个专用端点,以允许 Azure Key Vault 和 Azure Web 应用程序之间的通信。

在此输入图像描述

在此输入图像描述

我设置了所有权限key vault's access policy,我已经添加了管理的身份,the azure web app并且两个端点位于相同的位置virtual network,但应用程序无法读取密钥保管库引用

在此输入图像描述

有什么想法可以解决这个问题吗?

编辑 :

允许从专用端点和选定网络进行访问

在此输入图像描述

我不想将我的网络应用程序的公共 IP地址放入防火墙中

我在密钥保管库中添加了 vnet

在此输入图像描述

azure azure-keyvault azure-web-app-service

3
推荐指数
1
解决办法
2万
查看次数