Skip to content

Commit 03b2c9f

Browse files
authored
Reorganize Blazor Host and Deploy node (#35098)
1 parent a279f7f commit 03b2c9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1923
-1784
lines changed

.openpublishing.redirection.json

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -972,12 +972,12 @@
972972
},
973973
{
974974
"source_path": "aspnetcore/host-and-deploy/blazor/client-side.md",
975-
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly",
975+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/",
976976
"redirect_document_id": false
977977
},
978978
{
979979
"source_path": "aspnetcore/host-and-deploy/blazor/server-side.md",
980-
"redirect_url": "/aspnet/core/blazor/host-and-deploy/server",
980+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/server/",
981981
"redirect_document_id": false
982982
},
983983
{
@@ -1077,12 +1077,12 @@
10771077
},
10781078
{
10791079
"source_path": "aspnetcore/host-and-deploy/blazor/server.md",
1080-
"redirect_url": "/aspnet/core/blazor/host-and-deploy/server",
1080+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/server/",
10811081
"redirect_document_id": false
10821082
},
10831083
{
10841084
"source_path": "aspnetcore/host-and-deploy/blazor/webassembly.md",
1085-
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly",
1085+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/",
10861086
"redirect_document_id": false
10871087
},
10881088
{
@@ -1310,7 +1310,7 @@
13101310
},
13111311
{
13121312
"source_path": "aspnetcore/blazor/http-caching-issues.md",
1313-
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly-caching/http-caching-issues",
1313+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/http-caching-issues",
13141314
"redirect_document_id": false
13151315
},
13161316
{
@@ -1357,6 +1357,36 @@
13571357
"source_path": "aspnetcore/blazor/security/server/index.md",
13581358
"redirect_url": "/aspnet/core/blazor/security/",
13591359
"redirect_document_id": false
1360+
},
1361+
{
1362+
"source_path": "aspnetcore/blazor/host-and-deploy/webassembly-caching/index.md",
1363+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/runtime-and-app-bundle-caching",
1364+
"redirect_document_id": false
1365+
},
1366+
{
1367+
"source_path": "aspnetcore/blazor/host-and-deploy/webassembly-caching/http-caching-issues.md",
1368+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/http-caching-issues",
1369+
"redirect_document_id": false
1370+
},
1371+
{
1372+
"source_path": "aspnetcore/blazor/host-and-deploy/webassembly.md",
1373+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/",
1374+
"redirect_document_id": false
1375+
},
1376+
{
1377+
"source_path": "aspnetcore/blazor/host-and-deploy/multiple-hosted-webassembly.md",
1378+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/multiple-hosted-webassembly",
1379+
"redirect_document_id": false
1380+
},
1381+
{
1382+
"source_path": "aspnetcore/blazor/host-and-deploy/webassembly-deployment-layout.md",
1383+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/webassembly/deployment-layout",
1384+
"redirect_document_id": false
1385+
},
1386+
{
1387+
"source_path": "aspnetcore/blazor/host-and-deploy/server.md",
1388+
"redirect_url": "/aspnet/core/blazor/host-and-deploy/server/",
1389+
"redirect_document_id": false
13601390
}
13611391
]
13621392
}

aspnetcore/blazor/components/class-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ For more information, see <xref:razor-pages/ui-class#create-an-rcl-with-static-a
340340

341341
## Supply components and static assets to multiple hosted Blazor apps
342342

343-
For more information, see <xref:blazor/host-and-deploy/multiple-hosted-webassembly>.
343+
For more information, see <xref:blazor/host-and-deploy/webassembly/multiple-hosted-webassembly>.
344344

345345
:::moniker-end
346346

aspnetcore/blazor/components/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ Use a base-relative path (`/`) to refer to the web root for a static asset. In t
16841684

16851685
Components do **not** support tilde-slash notation (`~/`).
16861686

1687-
For information on setting an app's base path, see <xref:blazor/host-and-deploy/index#app-base-path>.
1687+
For information on setting an app's base path, see <xref:blazor/host-and-deploy/app-base-path>.
16881688

16891689
## Tag Helpers aren't supported in components
16901690

aspnetcore/blazor/components/integration-hosted-webassembly.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ The persisted prerendered state is transferred to the client, where it's used to
559559
* Authentication and authorization subjects that pertain to prerendering
560560
* [General aspects](xref:blazor/security/index)
561561
* [Prerendering with authentication in hosted Blazor WebAssembly apps](xref:blazor/security/webassembly/additional-scenarios#prerendering-with-authentication)
562-
* [Host and deploy: Blazor WebAssembly](xref:blazor/host-and-deploy/webassembly)
562+
* <xref:blazor/host-and-deploy/webassembly/index>
563563
* [Handle errors: Prerendering](xref:blazor/fundamentals/handle-errors#prerendering)
564564
* <xref:Microsoft.AspNetCore.Components.Routing.Router.OnNavigateAsync> is executed *twice* when prerendering: [Handle asynchronous navigation events with `OnNavigateAsync`](xref:blazor/fundamentals/routing#handle-asynchronous-navigation-events-with-onnavigateasync)
565565

@@ -1074,7 +1074,7 @@ The persisted prerendered state is transferred to the client, where it's used to
10741074
* Authentication and authorization subjects that pertain to prerendering
10751075
* [General aspects](xref:blazor/security/index#aspnet-core-blazor-authentication-and-authorization)
10761076
* [Prerendering with authentication](xref:blazor/security/webassembly/additional-scenarios#prerendering-with-authentication)
1077-
* [Host and deploy: Blazor WebAssembly](xref:blazor/host-and-deploy/webassembly)
1077+
* <xref:blazor/host-and-deploy/webassembly/index>
10781078

10791079
:::moniker-end
10801080

@@ -1332,7 +1332,7 @@ Additional work might be required depending on the static resources that compone
13321332
* Authentication and authorization subjects that pertain to prerendering
13331333
* [General aspects](xref:blazor/security/index#aspnet-core-blazor-authentication-and-authorization)
13341334
* [Prerendering with authentication](xref:blazor/security/webassembly/additional-scenarios#prerendering-with-authentication)
1335-
* [Host and deploy: Blazor WebAssembly](xref:blazor/host-and-deploy/webassembly)
1335+
* <xref:blazor/host-and-deploy/webassembly/index>
13361336

13371337
:::moniker-end
13381338

aspnetcore/blazor/components/integration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Use the following guidance to integrate Razor components into pages or views of
5858
render-mode="ServerPrerendered" />
5959
```
6060
61-
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, follow the guidance in the *App base path* section of the <xref:blazor/host-and-deploy/index#app-base-path> article.
61+
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, see <xref:blazor/host-and-deploy/app-base-path>.
6262
6363
The <xref:Microsoft.AspNetCore.Components.Web.HeadOutlet> component is used to render head (`<head>`) content for page titles (<xref:Microsoft.AspNetCore.Components.Web.PageTitle> component) and other head elements (<xref:Microsoft.AspNetCore.Components.Web.HeadContent> component) set by Razor components. For more information, see <xref:blazor/components/control-head-content>.
6464
@@ -556,7 +556,7 @@ To resolve the problem, use ***either*** of the following approaches:
556556
* [Prerendering with JavaScript interop](xref:blazor/components/lifecycle#prerendering-with-javascript-interop)
557557
* [Authentication and authorization: General aspects](xref:blazor/security/index#aspnet-core-blazor-authentication-and-authorization)
558558
* [Handle Errors: Prerendering](xref:blazor/fundamentals/handle-errors#prerendering)
559-
* [Host and deploy: Blazor Server](xref:blazor/host-and-deploy/server)
559+
* <xref:blazor/host-and-deploy/server/index>
560560
* [Threat mitigation: Cross-site scripting (XSS)](xref:blazor/security/interactive-server-side-rendering#cross-site-scripting-xss)
561561
* <xref:Microsoft.AspNetCore.Components.Routing.Router.OnNavigateAsync> is executed *twice* when prerendering: [Handle asynchronous navigation events with `OnNavigateAsync`](xref:blazor/fundamentals/routing#handle-asynchronous-navigation-events-with-onnavigateasync)
562562

@@ -589,7 +589,7 @@ Use the following guidance to integrate Razor components into pages or views of
589589
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
590590
```
591591
592-
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, follow the guidance in the *App base path* section of the <xref:blazor/host-and-deploy/index#app-base-path> article.
592+
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, see <xref:blazor/host-and-deploy/app-base-path>.
593593
594594
The <xref:Microsoft.AspNetCore.Components.Web.HeadOutlet> component is used to render head (`<head>`) content for page titles (<xref:Microsoft.AspNetCore.Components.Web.PageTitle> component) and other head elements (<xref:Microsoft.AspNetCore.Components.Web.HeadContent> component) set by Razor components. For more information, see <xref:blazor/components/control-head-content>.
595595
@@ -1075,7 +1075,7 @@ To resolve the problem, use ***either*** of the following approaches:
10751075
* [Prerendering with JavaScript interop](xref:blazor/components/lifecycle#prerendering-with-javascript-interop)
10761076
* [Authentication and authorization: General aspects](xref:blazor/security/index#aspnet-core-blazor-authentication-and-authorization)
10771077
* [Handle Errors: Prerendering](xref:blazor/fundamentals/handle-errors#prerendering)
1078-
* [Host and deploy: Blazor Server](xref:blazor/host-and-deploy/server)
1078+
* <xref:blazor/host-and-deploy/server/index>
10791079
* [Threat mitigation: Cross-site scripting (XSS)](xref:blazor/security/interactive-server-side-rendering#cross-site-scripting-xss)
10801080

10811081
:::moniker-end
@@ -1103,7 +1103,7 @@ An existing Razor Pages or MVC app can integrate Razor components into pages or
11031103
<base href="~/" />
11041104
```
11051105

1106-
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, follow the guidance in the *App base path* section of the <xref:blazor/host-and-deploy/index#app-base-path> article.
1106+
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, see <xref:blazor/host-and-deploy/app-base-path>.
11071107

11081108
* Add a `<script>` tag for the `blazor.server.js` script immediately before the `Scripts` render section.
11091109
@@ -1507,7 +1507,7 @@ To resolve the problem, use ***either*** of the following approaches:
15071507
* [Prerendering with JavaScript interop](xref:blazor/components/lifecycle#prerendering-with-javascript-interop)
15081508
* [Authentication and authorization: General aspects](xref:blazor/security/index#aspnet-core-blazor-authentication-and-authorization)
15091509
* [Handle Errors: Prerendering](xref:blazor/fundamentals/handle-errors#prerendering)
1510-
* [Host and deploy: Blazor Server](xref:blazor/host-and-deploy/server)
1510+
* <xref:blazor/host-and-deploy/server/index>
15111511
* [Threat mitigation: Cross-site scripting (XSS)](xref:blazor/security/interactive-server-side-rendering#cross-site-scripting-xss)
15121512

15131513
:::moniker-end
@@ -1537,7 +1537,7 @@ An existing Razor Pages or MVC app can integrate Razor components into pages or
15371537
+ <base href="~/" />
15381538
```
15391539

1540-
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, follow the guidance in the *App base path* section of the <xref:blazor/host-and-deploy/index#app-base-path> article.
1540+
The `href` value (the *app base path*) in the preceding example assumes that the app resides at the root URL path (`/`). If the app is a sub-application, see <xref:blazor/host-and-deploy/app-base-path>.
15411541

15421542
* Add a `<script>` tag for the `blazor.server.js` script immediately before the `Scripts` render section.
15431543

@@ -1937,7 +1937,7 @@ To resolve the problem, use ***either*** of the following approaches:
19371937
* [Prerendering with JavaScript interop](xref:blazor/components/lifecycle#prerendering-with-javascript-interop)
19381938
* [Authentication and authorization: General aspects](xref:blazor/security/index#aspnet-core-blazor-authentication-and-authorization)
19391939
* [Handle Errors: Prerendering](xref:blazor/fundamentals/handle-errors#prerendering)
1940-
* [Host and deploy: Blazor Server](xref:blazor/host-and-deploy/server)
1940+
* <xref:blazor/host-and-deploy/server/index>
19411941
* [Threat mitigation: Cross-site scripting (XSS)](xref:blazor/security/interactive-server-side-rendering#cross-site-scripting-xss)
19421942

19431943
:::moniker-end

aspnetcore/blazor/fundamentals/environments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ In the following example for IIS, the custom header (`Blazor-Environment`) is ad
151151
```
152152

153153
> [!NOTE]
154-
> To use a custom `web.config` file for IIS that isn't overwritten when the app is published to the `publish` folder, see <xref:blazor/host-and-deploy/webassembly#use-a-custom-webconfig>.
154+
> To use a custom `web.config` file for IIS that isn't overwritten when the app is published to the `publish` folder, see <xref:blazor/host-and-deploy/webassembly/iis#use-of-a-custom-webconfig>.
155155
156156
### Nginx
157157

@@ -172,7 +172,7 @@ http {
172172
For more information, see the following resources:
173173

174174
* [Nginx documentation](http://nginx.org/docs/http/ngx_http_headers_module.html)
175-
* [Blazor WebAssembly Nginx hosting guidance](xref:blazor/host-and-deploy/webassembly#nginx)
175+
* <xref:blazor/host-and-deploy/webassembly/nginx>
176176

177177
### Apache
178178

@@ -186,10 +186,10 @@ For Apache servers, use the `Header` directive from the `mod_headers` module:
186186
</VirtualHost>
187187
```
188188

189-
For more information:
189+
For more information, see the following resources:
190190

191191
* [Apache documentation (search the latest release for "`mod_headers`")](https://httpd.apache.org/docs/)
192-
* [Blazor WebAssembly Apache hosting guidance](xref:blazor/host-and-deploy/webassembly#apache)
192+
* <xref:blazor/host-and-deploy/webassembly/apache>
193193

194194
## Set the environment for Azure App Service
195195

aspnetcore/blazor/fundamentals/routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Components support multiple route templates using multiple [`@page` directives](
9999
:::moniker-end
100100

101101
> [!IMPORTANT]
102-
> For URLs to resolve correctly, the app must include a `<base>` tag ([location of `<head>` content](xref:blazor/project-structure#location-of-head-and-body-content)) with the app base path specified in the `href` attribute. For more information, see <xref:blazor/host-and-deploy/index#app-base-path>.
102+
> For URLs to resolve correctly, the app must include a `<base>` tag ([location of `<head>` content](xref:blazor/project-structure#location-of-head-and-body-content)) with the app base path specified in the `href` attribute. For more information, see <xref:blazor/host-and-deploy/app-base-path>.
103103
104104
:::moniker range="< aspnetcore-6.0"
105105

@@ -1818,6 +1818,6 @@ The typical configuration is to route all requests to a Razor page, which acts a
18181818

18191819
The route specified in the host file is called a *fallback route* because it operates with a low priority in route matching. The fallback route is used when other routes don't match. This allows the app to use other controllers and pages without interfering with component routing in the Blazor Server app.
18201820

1821-
For information on configuring <xref:Microsoft.AspNetCore.Builder.RazorPagesEndpointRouteBuilderExtensions.MapFallbackToPage%2A> for non-root URL server hosting, see <xref:blazor/host-and-deploy/index#app-base-path>.
1821+
For information on configuring <xref:Microsoft.AspNetCore.Builder.RazorPagesEndpointRouteBuilderExtensions.MapFallbackToPage%2A> for non-root URL server hosting, see <xref:blazor/host-and-deploy/app-base-path>.
18221822

18231823
:::moniker-end

aspnetcore/blazor/fundamentals/signalr.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The following error is thrown by an app that hasn't enabled session affinity in
185185

186186
> :::no-loc text="Uncaught (in promise) Error: Invocation canceled due to the underlying connection being closed.":::
187187
188-
For more information on session affinity with Azure App Service hosting, see <xref:blazor/host-and-deploy/server#azure-app-service>.
188+
For more information on session affinity with Azure App Service hosting, see <xref:blazor/host-and-deploy/server/index#azure-app-service>.
189189

190190
## Azure SignalR Service
191191

@@ -196,7 +196,7 @@ The service isn't required for Blazor apps hosted in Azure App Service or Azure
196196
* To facilitate connection scale out.
197197
* Handle global distribution.
198198

199-
For more information, see <xref:blazor/host-and-deploy/server#azure-signalr-service>.
199+
For more information, see <xref:blazor/host-and-deploy/server/index#azure-signalr-service>.
200200

201201
## Server-side circuit handler options
202202

@@ -297,7 +297,7 @@ services.AddServerSideBlazor().AddHubOptions(options =>
297297
>
298298
> Blazor relies on <xref:Microsoft.AspNetCore.SignalR.HubOptions.MaximumParallelInvocationsPerClient%2A> set to 1, which is the default value. For more information, see [MaximumParallelInvocationsPerClient > 1 breaks file upload in Blazor Server mode (`dotnet/aspnetcore` #53951)](https://github.com/dotnet/aspnetcore/issues/53951).
299299
300-
For information on memory management, see <xref:blazor/host-and-deploy/server#memory-management>.
300+
For information on memory management, see <xref:blazor/host-and-deploy/server/memory-management>.
301301

302302
## Blazor hub options
303303

@@ -993,8 +993,8 @@ When changing the values of the server timeout (<xref:Microsoft.AspNetCore.Signa
993993

994994
For more information, see the *Global deployment and connection failures* sections of the following articles:
995995

996-
* <xref:blazor/host-and-deploy/server#global-deployment-and-connection-failures>
997-
* <xref:blazor/host-and-deploy/webassembly#global-deployment-and-connection-failures>
996+
* <xref:blazor/host-and-deploy/server/index#global-deployment-and-connection-failures>
997+
* <xref:blazor/host-and-deploy/webassembly/index#global-deployment-and-connection-failures>
998998

999999
## Modify the server-side reconnection handler
10001000

@@ -1640,7 +1640,7 @@ In the preceding code, `NavManager` is a <xref:Microsoft.AspNetCore.Components.N
16401640

16411641
## Additional server-side resources
16421642

1643-
* [Server-side host and deployment guidance: SignalR configuration](xref:blazor/host-and-deploy/server#signalr-configuration)
1643+
* [Server-side host and deployment guidance: SignalR configuration](xref:blazor/host-and-deploy/server/index#signalr-configuration)
16441644
* <xref:signalr/introduction>
16451645
* <xref:signalr/configuration>
16461646
* Server-side security documentation

0 commit comments

Comments
 (0)