Emile Cantero
Emile Cantero

Reputation: 2063

How make run Angular 4 with Apache

I am actually running my Angular 4 project trought an Ubuntu server 16.04 LTS where I setup Node JS but I would like to change the config to make it run only with apache, is that posible? If yes how to do that?

Thanks in advance for your answears

Upvotes: 2

Views: 9668

Answers (1)

Picci
Picci

Reputation: 17762

To run an Angular app from a web server (e.g. Apache) you need first to build a runtime package (e.g. via AngulaCli ng build command) and then deploy the package to Apache.

The only html file which will be downloaded will be index.html

All the rest of the app (js, css, other assets) will be downloaded automatically from there by Angular (this is the Single Page App model)

Upvotes: 3

Related Questions