Chapter 2. Deploying to Apache
The Apache HTTP server is without a doubt the most common destination for websites and applications being deployed into production. Because of this, most developers have some level of comfort with deploying to a remote Apache server, but will likely have limited experience in deploying an Angular application to this server environment. Take a look at the graph in the following figure to see how Apache stacks up when compared to other top servers:
In this chapter, we will cover the following points:
- Things needed to properly host an Angular app on an Apache server
- To deploy to a remote Apache server using both the FTP CLI and clients
- To automate deployment with GitHub Service Hooks and SSH
- To optimize Apache's configuration to support the use of Google's PageSpeed Service and Angular's HTML5Mode
- To avoid some gotchas and pitfalls along the way