Browse Source

Merge pull request #23094 from abpframework/auto-merge/rel-9-3/3787

Merge branch dev with rel-9.3
pull/23096/head
maliming 8 months ago
committed by GitHub
parent
commit
932d14ecfe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 33
      docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md

33
docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md

@ -254,6 +254,39 @@ We can visit the websites from a browser.
![Tiered IIS deployment](../../../images/iis-sample-tiered-deployment.gif)
{{ if UI == "NG" }}
## Rewrite for getEnvConfig
Please add the following rewrite rules to your `web.config` file to redirect requests for `getEnvConfig` to `dynamic-env.json`:
```xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect" stopProcessing="true">
<match url="getEnvConfig" />
<action type="Redirect" url="dynamic-env.json" />
</rule>
<rule name="Angular 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="./index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
```
> See [Angular RemoteEnvironment](https://abp.io/docs/latest/framework/ui/angular/environment#remoteenvironment) for more details.
{{ end }}
## Fix 405 Method Not Allowed Error
Remove `WebDAV` modules and handlers from the `Web.config` file.

Loading…
Cancel
Save