Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Hosting on IIS #769

@carol-braileanu

Description

@carol-braileanu

Hello,

I have been watching the topic of server-side rendering/prerendering for a long time now. I have a Windows server and I need to host my Angular website on IIS, for many reasons. I am also using Angular-CLI which I like very much and I want to keep using it.

As far as I could read the solution for IIS hosting is to host the app inside an ASP.NET project. That is literally the LAST thing I will do, I think it's a very bad choice and Microsoft is just trying to push their tools to Angular Developers.

Another solution would be to run in an Node Express server, but that for me is not a good choice for a production environment. I need to set multiple host headers and I need to change them dynamically, which (I think) is not possible with Express. Is there a way to host the site in IIS under Windows?

The solution that I am leaning towards right now is to use prerendering to pre-render my site altogether. However, because my pages will be dynamic I need to have the possibility to update the indexed pages dynamically. So I need a way to at least reindex a single route, ideally from inside the Angular application or from the backend. What tool should i use for this task?

PS: IMHO, it would be nice to have Angular Universal as web server extension, like an ISAPI extension or an Apache module. This would make it much easier to host.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions