There's plenty of documentation on installing and configuring the Apache web server, but where do you find help for the day-to-day stuff, like adding common modules or fine-tuning your activity logging? That's easy. The new edition of the Apache Cookbook offers you updated solutions to the problems you're likely to encounter with the new versions of Apache.
Written by members of the Apache Software Foundation, and thoroughly revised for Apache versions 2.0 and 2.2, recipes in this book range from simple tasks, such installing the server on Red Hat Linux or Windows, to more complex tasks, such as setting up name-based virtual hosts or securing and managing your proxy server. Altogether, you get more than 200 timesaving recipes for solving a crisis or other deadline conundrums, with topics including:
Aliases, Redirecting, and Rewriting
CGI Scripts, the suexec Wrapper, and other dynamic content techniques
This book tackles everything from beginner problems to those faced by experienced users. For every problem addressed in the book, you will find a worked-out solution that includes short, focused pieces of code you can use immediately. You also get explanations of how and why the code works, so you can adapt the problem-solving techniques to similar situations.
Instead of poking around mailing lists, online documentation, and other sources, rely on the Apache Cookbook for quick solutions when you need them. Then you can spend your time and energy where it matters most.
Chapter 1 Installation
Installing installation from Red Hat Linux packages packages Red Hat Linux, installation from Red Hat Linux, packages, installation from from Red Hat Linux’s Packages
Debian, packages, installation from installation from Debian packages packages Debian, installation from Installing from Debian Packages
Windows installation on Installing Apache installation on Windows on Windows
Showing PHP source, highlighted without symlinking symlinking, highlighted PHP source without Highlighted PHP Source without Symlinking
URLs (Uniform Resource Locators) replacing text in requested Replacing Text in Requested URLs
CGI arguments, rewriting path information Rewriting rewriting path information to CGI arguments Path Information to CGI Arguments
requests unreferred denying access to unreferred requests denying access to Denying Access to Unreferred Requests
requests unreferred redirecting to explanation page unreferred requests redirecting to explanation page Redirecting redirecting unreferred requests to explanation page Unreferred Requests to an Explanation Page
query strings, rewriting based on Rewriting rewriting based on query string Based on the Query String
SSL (Secure Socket Layers) redirecting to Redirecting All—or Part—of Your Server redirecting to SSL to SSL
directories turning into hostnames hostnames turning directories into Turning Directories into Hostnames
requests redirecting to single host Redirecting All redirecting requests to single host Requests to a Single Host
arguments, turning document names into documents names, turning into arguments Turning Document Names into Arguments
URLs (Uniform Resource Locators) elements, rewriting between path and query string Rewriting rewriting URL elements between path and query string Elements between Path and Query String
directories rewriting hostnames to hostnames rewriting to directory Rewriting a rewriting hostnames to directories Hostname to a Directory
query arguments, turning URL segments into URLs (Uniform Resource Locators) segments, turning into query arguments Turning URL Segments into Query Arguments
Using AliasMatch AliasMatch, ScriptAliasMatch ScriptAliasMatch, and RedirectMatch RedirectMatch
Chapter 6 Security
Using authentication system account information and security authentication system account information and System Account Information for Web Authentication
Rich Bowen has been involved with the Apache Web Server project since 1998, and has written a number of books about it. He works on the web team at Asbury College, where he gets to put into practice a few of the things he writes about. Rich lives in Lexington, Kentucky.
Ken Coar is a member of the Apache Software Foundation, the body that oversees Apache development. He is the author of Apache Server for Dummies (January 1998) and co-author of Apache Server Unleashed (March 2000). Ken has been responsible for fielding email sent to the Apache project, and his experience with that mailing list provided a foundation for this book.
The animal on the cover of Apache Cookbook, Second Edition, is a moose. The moose roams the forests of North America, Europe, and Russia. It's the largest of the deer family, and the largest moose of all--Alces alces gigas--is found throughout Alaska. That particular moose, in fact, is so ubiquitous that it has played an important role in the development of the state--although the relationship between moose and men is often adversarial.
Moose have a high reproductive potential and can quickly fill a range to capacity. In Alaska, the removal of mature timber through logging and fire has benefited them by providing new stands of young timber--high-quality moose food. Unfortunately, moose get to be a pain when they eat crops, stand on airfields, wander the city streets, and collide with cars and trains.
But, in general, these animals are good for the state's economy. Moose are an essential part of the Alaskan landscape, providing tourista with photo opportunities when the animals feed along the highway. Residents and out-of-state hunters harvest 6,000 to 8,000 moose annually--approximately 3.5 million pounds of meat. The future for these animals in Alaska is reasonably bright because humans are learning how to manage moose habitat with wildlife and how to mitigate factors that affect moose populations, such as hunting and predation by wolves and bears.
The cover image is an original engraving from The Illustrated Natural History: Mammalia. The cover font is Adobe's ITC Garamond. The text font is Linotype Birka, the heading font is Adobe Myriad Condensed, and the code font is LucasFont's TheSans Mono Condensed.
Comments about oreilly Apache Cookbook, 2nd Edition:
I bought the book to help me improve the network environment at my workplace and it helped me heaps.
The recipes are easy to follow and instructions are clear. What I love it is how tasks you think are big to execute are not that big at all and the book explains in detail what each solution actually does in the background.
Bottom Line Yes, I would recommend this to a friend
Comments about oreilly Apache Cookbook, 2nd Edition:
Still easier to get a Mac!
Installing Apache on a Windows machine is easy with this book. Getting Apache and PHP to run so that one doesn't need to have net access, is not. An update for Section 2.6 "Installin mod_php on Windows" should be writen to account for PHP5.