Synopses & Reviews
Apache is far and away the most widely used web server platform in the world. This versatile server runs more than half of the world's existing web sites. Apache is both free and rock-solid, running more than 21 million web sites ranging from huge e-commerce operations to corporate intranets and smaller hobby sites.With this new third edition of Apache: The Definitive Guide, web administrators new to Apache will come up to speed quickly, and experienced administrators will find the logically organized, concise reference sections indispensable, and system programmers interested in customizing their servers will rely on the chapters on the API and Apache modules.Updated to cover the changes in Apache's latest release, 2.0, as well as Apache 1.3, this useful guide discusses how to obtain, set up, secure, modify, and troubleshoot the Apache software on both Unix and Windows systems. Dozens of clearly written examples provide the answers to the real-world issues that Apache administrators face everyday. In addition to covering the installation and configuration of mod_perl and Tomcat, the book examines PHP, Cocoon, and other new technologies that are associated with the Apache web server. Additional coverage of security and the Apache 2.0 API make Apache: The Definitive Guide, Third Edition essential documentation for the world's most popular web server.
This complete guide to the Apache Web server discusses how to obtain, set up, and secure the software on both Unix and Windows systems.
This complete guide to the Apache web server discusses how to obtain, set up, and secure the software on both Unix and Windows systems. The updated 3rd edition covers both Apache 1.3 and Apache 2.0, the latest release of the software, and contains new material on mod_perl, PHP, Cocoon, Tomcat, and other new technologies that are associated with this dominant web server software.
About the Author
Ben Laurie is the coauthor of Apache: The Definitive Guide, Technical Director of A.L. Digital Ltd. and The Bunker, a director of the Apache Software Foundation, author of Apache-SSL and a core team member of OpenSSL. As well as his obvious involvement with free software, he's also obsessed with security and privacy, particularly on the net. In his copious spare time, he writes stuff, sometimes code, sometimes words.
Coauthor of Apache: The Definitive Guide, 3nd Edition
Table of Contents
Preface; Who Wrote Apache, and Why?; The Demonstration Code; Conventions Used in This Book; Organization of This Book; Acknowledgments; Chapter 1: Getting Started; 1.1 What Does a Web Server Do?; 1.2 How Apache Works; 1.3 Apache and Networking; 1.4 How HTTP Clients Work; 1.5 What Happens at the Server End?; 1.6 Planning the Apache Installation; 1.7 Windows?; 1.8 Which Apache?; 1.9 Installing Apache; 1.10 Building Apache 1.3.X Under Unix; 1.11 New Features in Apache v2; 1.12 Making and Installing Apache v2 Under Unix; 1.13 Apache Under Windows; Chapter 2: Configuring Apache: The First Steps; 2.1 What's Behind an Apache Web Site?; 2.2 site.toddle; 2.3 Setting Up a Unix Server; 2.4 Setting Up a Win32 Server; 2.5 Directives; 2.6 Shared Objects; Chapter 3: Toward a Real Web Site; 3.1 More and Better Web Sites: site.simple; 3.2 Butterthlies, Inc., Gets Going; 3.3 Block Directives; 3.4 Other Directives; 3.5 HTTP Response Headers; 3.6 Restarts; 3.7 .htaccess; 3.8 CERN Metafiles; 3.9 Expirations; Chapter 4: Virtual Hosts; 4.1 Two Sites and Apache; 4.2 Virtual Hosts; 4.3 Two Copies of Apache; 4.4 Dynamically Configured Virtual Hosting; Chapter 5: Authentication; 5.1 Authentication Protocol; 5.2 Authentication Directives; 5.3 Passwords Under Unix; 5.4 Passwords Under Win32; 5.5 Passwords over the Web; 5.6 From the Client's Point of View; 5.7 CGI Scripts; 5.8 Variations on a Theme; 5.9 Order, Allow, and Deny; 5.10 DBM Files on Unix; 5.11 Digest Authentication; 5.12 Anonymous Access; 5.13 Experiments; 5.14 Automatic User Information; 5.15 Using .htaccess Files; 5.16 Overrides; Chapter 6: Content Description and Modification; 6.1 MIME Types; 6.2 Content Negotiation; 6.3 Language Negotiation; 6.4 Type Maps; 6.5 Browsers and HTTP 1.1; 6.6 Filters; Chapter 7: Indexing; 7.1 Making Better Indexes in Apache; 7.2 Making Our Own Indexes; 7.3 Imagemaps; 7.4 Image Map Directives; Chapter 8: Redirection; 8.1 Alias; 8.2 Rewrite; 8.3 Speling; Chapter 9: Proxying; 9.1 Security; 9.2 Proxy Directives; 9.3 Apparent Bug; 9.4 Performance; 9.5 Setup; Chapter 10: Logging; 10.1 Logging by Script and Database; 10.2 Apache's Logging Facilities; 10.3 Configuration Logging; 10.4 Status; Chapter 11: Security; 11.1 Internal and External Users; 11.2 Binary Signatures, Virtual Cash; 11.3 Certificates; 11.4 Firewalls; 11.5 Legal Issues; 11.6 Secure Sockets Layer (SSL); 11.7 Apache's Security Precautions; 11.8 SSL Directives; 11.9 Cipher Suites; 11.10 Security in Real Life; 11.11 Future Directions; Chapter 12: Running a Big Web Site; 12.1 Machine Setup; 12.2 Server Security; 12.3 Managing a Big Site; 12.4 Supporting Software; 12.5 Scalability; 12.6 Load Balancing; Chapter 13: Building Applications; 13.1 Web Sites as Applications; 13.2 Providing Application Logic; 13.3 XML, XSLT, and Web Applications; Chapter 14: Server-Side Includes; 14.1 File Size; 14.2 File Modification Time; 14.3 Includes; 14.4 Execute CGI; 14.5 Echo; 14.6 Apache v2: SSI Filters; Chapter 15: PHP; 15.1 Installing PHP; 15.2 Site.php; Chapter 16: CGI and Perl; 16.1 The World of CGI; 16.2 Telling Apache About the Script; 16.3 Setting Environment Variables; 16.4 Cookies; 16.5 Script Directives; 16.6 suEXEC on Unix; 16.7 Handlers; 16.8 Actions; 16.9 Browsers; Chapter 17: mod_perl; 17.1 How mod_perl Works; 17.2 mod_perl Documentation; 17.3 Installing mod_perl -- The Simple Way; 17.4 Modifying Your Scripts to Run Under mod_perl; 17.5 Global Variables; 17.6 Strict Pregame; 17.7 Loading Changes; 17.8 Opening and Closing Files; 17.9 Configuring Apache to Use mod_perl; Chapter 18: mod_jserv and Tomcat; 18.1 mod_jserv; 18.2 Tomcat; 18.3 Connecting Tomcat to Apache; Chapter 19: XML and Cocoon; 19.1 XML; 19.2 XML and Perl; 19.3 Cocoon; 19.4 Cocoon 1.8 and JServ; 19.5 Cocoon 2.0.3 and Tomcat; 19.6 Testing Cocoon; Chapter 20: The Apache API; 20.1 Documentation; 20.2 APR; 20.3 Pools; 20.4 Per-Server Configuration; 20.5 Per-Directory Configuration; 20.6 Per-Request Information; 20.7 Access to Configuration and Request Information; 20.8 Hooks, Optional Hooks, and Optional Functions; 20.9 Filters, Buckets, and Bucket Brigades; 20.10 Modules; Chapter 21: Writing Apache Modules; 21.1 Overview; 21.2 Status Codes; 21.3 The Module Structure; 21.4 A Complete Example; 21.5 General Hints; 21.6 Porting to Apache 2.0; Appendix A: The Apache 1.x API; A.1 Pools; A.2 Per-Server Configuration; A.3 Per-Directory Configuration; A.4 Per-Request Information; A.5 Access to Configuration and Request Information; A.6 Functions; Colophon;