当我刷新托管在 Azure Web APP(IIS 服务器)中的 Vue JS 应用程序中的任何页面(默认网页除外)时,我收到错误“404 未找到”index.html
我已经web.config根据 VueJs 官方文档添加了这个重写配置:
<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> \nRun Code Online (Sandbox Code Playgroud)\n这是我的web.conf文件:
<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) 我有一个天蓝色的网络服务(linux)和天蓝色的密钥保管库。
我配置了两个专用端点,以允许 Azure Key Vault 和 Azure Web 应用程序之间的通信。
我设置了所有权限key vault's access policy,我已经添加了管理的身份,the azure web app并且两个端点位于相同的位置virtual network,但应用程序无法读取密钥保管库引用
有什么想法可以解决这个问题吗?
编辑 :
允许从专用端点和选定网络进行访问
我不想将我的网络应用程序的公共 IP地址放入防火墙中
我在密钥保管库中添加了 vnet