Preface

Apache is a powerful web server designed with a modular architecture to be both efficient and portable. It is extremely flexible, offering the ability for a single server to support multiple websites as virtual hosts and to act as a web proxy. Apache includes standard modules for caching, to support SSL/TLS connections, various authentication and authorization mechanisms, and a filtering system. There are many addon modules that extend Apache’s functionality providing features, such as templating engines, embedded interpreters for many scripting languages, and HTTP interfaces to systems such as the Subversion version control system.

This pocket reference summarizes Apache’s command-line options and the configuration directives for the modules in the standard distribution. It covers Apache version 2.2.9, but most information is applicable to any version of Apache 2. For comprehensive information, the scale of which is beyond the scope of a small guide such as this, the Apache documentation website (http://httpd.apache.org/docs/) should be your next point of referral.

Conventions

The following conventions are used in this book:

constant width text

Denotes literal text.

constant width italic text

Denotes dummy parameters.

{ A | B }

Denotes alternatives.

[text]

Denotes optional text.

...

Indicates that the previous element may be repeated.

Using Code Examples

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Apache 2 Pocket Reference by Andrew Ford. Copyright 2008. Ford & Mason Ltd., 978-0-596-51888-2.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

Safari® Books Online

image with no caption

When you see a Safari® Books Online icon on the cover of your favorite technology book, that means the book is available online through Safari Books Online.

Safari offers a solution that’s better than e-books. It’s a virtual library that lets you easily search thousands of top tech books, cut and paste code samples, download chapters, and find quick answers when you need the most accurate, current information. Try it for free at http://safaribooksonline.com.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707 829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at:

To comment or ask technical questions about this book, send email to:

For more information about our books, conferences, Resource Centers, and the O’Reilly Network, see our web site at:

Acknowledgments

I would like to thank all my reviewers, especially Chris Pepper and my wife, Catherine Mason, who both did sterling work; my colleagues at MessageLabs for their support; the staff at O’Reilly—in particular my editor, Simon St.Laurent, and Abby Fox, who turned my ideas about how the book should be typeset into reality; and finally all of the Apache developers, the Apache HTTPD project, and the countless individuals who have contributed to make Apache what it is and keep on improving it.

Get Apache 2 Pocket Reference 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.