Recipe 41Configuring Secure Websites with Apache

Problem

When our applications and websites deal with people’s information, we owe it to those people to safeguard it. We want to make sure our servers and databases safely store that information, but we also need to protect that data during its trips from their computers to our servers and back. We need to configure our web server so that it uses SSL to connect to web browsers.

Ingredients

  • A virtual machine running Ubuntu for testing

  • The Apache web server with SSL support

Solution

To set up a secure web server, we need to set up SSL certificates. Production websites use signed SSL certificates that are verified by a third-party authority. This verification gives customers a sense of security.

Get Web Development Recipes, 2nd Edition 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.