Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 5来自密码重置电子邮件的路由_Angular_Azure_Iis_Angular5 - Fatal编程技术网

Angular 5来自密码重置电子邮件的路由

Angular 5来自密码重置电子邮件的路由,angular,azure,iis,angular5,Angular,Azure,Iis,Angular5,我正在使用Angular 5开发密码重置功能,但在正确配置IIS以使其正常运行时遇到问题,因此我的url实际上是通过Angular路由器运行的 密码重置电子邮件链接类似于https://myapp.com/reset/ 角度路由配置如下所示 RouterModule.forRoot([ { path: '', redirectTo: 'home', pathMatch: 'full'}, ... other routes ... { path: 'reset/:code', comp

我正在使用Angular 5开发密码重置功能,但在正确配置IIS以使其正常运行时遇到问题,因此我的url实际上是通过Angular路由器运行的

密码重置电子邮件链接类似于
https://myapp.com/reset/

角度路由配置如下所示

RouterModule.forRoot([
  { path: '', redirectTo: 'home', pathMatch: 'full'},
  ... other routes ...
  { path: 'reset/:code', component: ResetPasswordComponent},
  { path: "**", redirectTo: 'home' }
])
这是我的web.config文件。我在网上找到了这个列表,用于在azure中托管angular应用程序

<?xml version="1.0"?>

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
            <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
            <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
        </staticContent>
    </system.webServer>
    <system.webServer>
    <rewrite>
        <rules>
            <rule name="angular cli routes" stopProcessing="true">
                <match url=".*" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                </conditions>
                <action type="Rewrite" url="/" />
            </rule>
        </rules>
    </rewrite>
  </system.webServer>
</configuration>
试试这个:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable