O'Reilly logo

Web Development Recipes, 2nd Edition by Chris Johnson, Mike Weber, Chris Warren, Brian P. Hogan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required