From 099a6b10d504a3ca5c4bd3272f2fa6e6bd01dd55 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 17 Jun 2025 20:16:44 +0800 Subject: [PATCH 1/3] Add rewrite rules for getEnvConfig in Web.config for Angular deployment --- .../deployment/deployment-iis.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md b/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md index 3d33cbd7a1..a70dfdd7bb 100644 --- a/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md +++ b/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md @@ -254,6 +254,36 @@ 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`, See [Angular RemoteEnvironment](https://abp.io/docs/latest/framework/ui/angular/environment#remoteenvironment) for more details. + +```xml + + + + + + + + + + + + + + + + + + + + + +``` +{{ end }} + ## Fix 405 Method Not Allowed Error Remove `WebDAV` modules and handlers from the `Web.config` file. From 03b88fbe3e451141b2b78217d4ffb0249b702acd Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 17 Jun 2025 20:18:18 +0800 Subject: [PATCH 2/3] Update deployment-iis.md --- .../layered-web-application/deployment/deployment-iis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md b/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md index a70dfdd7bb..5b8795c08f 100644 --- a/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md +++ b/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md @@ -257,7 +257,7 @@ We can visit the websites from a browser. {{ 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`, See [Angular RemoteEnvironment](https://abp.io/docs/latest/framework/ui/angular/environment#remoteenvironment) for more details. +Please add the following rewrite rules to your `web.config` file to redirect requests for `getEnvConfig` to `dynamic-env.json`, See [Angular RemoteEnvironment](https://abp.io/docs/latest/framework/ui/angular/environment#remoteenvironment) for more details. ```xml From fb2db081f9b2b69fd0c58f7bf40886b8115bd446 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Tue, 17 Jun 2025 13:03:11 +0000 Subject: [PATCH 3/3] Update deployment-iis.md --- .../layered-web-application/deployment/deployment-iis.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md b/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md index 5b8795c08f..a280420ec3 100644 --- a/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md +++ b/docs/en/solution-templates/layered-web-application/deployment/deployment-iis.md @@ -257,7 +257,7 @@ We can visit the websites from a browser. {{ 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`, See [Angular RemoteEnvironment](https://abp.io/docs/latest/framework/ui/angular/environment#remoteenvironment) for more details. +Please add the following rewrite rules to your `web.config` file to redirect requests for `getEnvConfig` to `dynamic-env.json`: ```xml @@ -282,6 +282,9 @@ Please add the following rewrite rules to your `web.config` file to redirect req ``` + +> See [Angular RemoteEnvironment](https://abp.io/docs/latest/framework/ui/angular/environment#remoteenvironment) for more details. + {{ end }} ## Fix 405 Method Not Allowed Error