Chapter 10. Managing Web Servers

This chapter contains the following recipes:

  • Installing Apache HTTP Server and PHP
  • Configuring name-based virtual hosting
  • Configuring Apache to serve pages over HTTPS
  • Enabling overrides and performing URL rewriting
  • Installing NGINX as a load balancer

Introduction

This chapter contains recipes for working with the Apache HTTP Server to serve websites. You'll first learn how to install the server as well as PHP, a very common server-side scripting engine used to generate dynamic web content. Then you'll see how to serve multiple sites with the same server instance using name-based virtual hosting, encrypt the connection and serve content over HTTPS, and how to rewrite incoming URLs on the fly. We'll finish with looking ...

Get CentOS 7 Server Deployment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.