1

I need to deploy three Angular applications to the IIS 10. Routing needs to be functional for all situations and for all apps. The applications are in separate folders like 'first-app', 'second-app' and 'third-app' inside the folder which represents a physical path for the application.

For example, if I have a 'home' route inside the first app, navigating to the localhost/first-app/home should work without giving me the 404 error.

What is the best way of doing this?

2 Answers 2

2

Deploy your three application as virtual applications in your default web site. In the index.html change the base url value accordingly. For example, for the first app, the base url will be

<base href="http://localhost/first-app/">
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. This solution is fine for me. Additionally, I had to set up separate web config files in each directory with url rewrite rules.
0
ng build --prod --deployUrl="/first-app/" --baseHref="/first-app/"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.