reklama - zainteresowany?

Apache Cookbook - Helion

Apache Cookbook
ebook
Autor: Ken Coar, Rich Bowen
ISBN: 978-05-965-5187-2
stron: 256, Format: ebook
Data wydania: 2003-11-18
Księgarnia: Helion

Cena książki: 29,90 zł (poprzednio: 106,79 zł)
Oszczędzasz: 72% (-76,89 zł)

Dodaj do koszyka Apache Cookbook

Apache is far and away the most widely used web server platform in the world. Both free and rock-solid, it runs more than half of the world's web sites, ranging from huge e-commerce operations to corporate intranets and smaller hobby sites, and it continues to maintain its popularity, drawing new users all the time. If you work with Apache on a regular basis, you have plenty of documentation on installing and configuring your server, but where do you go for help with the day-to-day stuff, like adding common modules or fine-tuning your activity logging?The Apache Cookbook is a collection of problems, solutions, and practical examples for webmasters, web administrators, programmers, and everyone else who works with Apache. For every problem addressed in the book, there's a worked-out solution or "recipe"--short, focused pieces of code that you can use immediately. But this book offers more than cut-and-paste code. You also get explanations of how and why the code works, so you can adapt the problem-solving techniques to similar situations.The recipes in the Apache Cookbook 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. The two hundred plus recipes in the book cover additional topics such as:

  • Security
  • Aliases, Redirecting, and Rewriting
  • CGI Scripts, the suexec Wrapper, and other dynamic content techniques
  • Error Handling
  • SSL
  • Performance
The impressive collection of useful code in this book is a guaranteed timesaver for all Apache users, from novices to advanced practitioners. Instead of poking around mailing lists, online documentation, and other sources, you can rely on the Apache Cookbook for quick solutions to common problems, and then you can spend your time and energy where it matters most.

Dodaj do koszyka Apache Cookbook

Spis treści

Apache Cookbook eBook -- spis treści

  • Apache Cookbook
    • SPECIAL OFFER: Upgrade this ebook with OReilly
    • Preface
      • Whats in This Book
      • Platform Notes
      • Other Books
      • Other Sources
      • How This Book Is Organized
      • Conventions Used in This Book
        • Programming Conventions
        • Typesetting Conventions
        • Documentation Conventions
          • The online manual ("man") pages on a Unixish system
          • The Apache web server documentation
      • We'd Like to Hear from You
      • Acknowledgments
        • Ken Coar
        • Rich Bowen
    • 1. Installation
      • 1.1. Installing from Red Hat Linux's Packages
        • Problem
        • Solution
        • Discussion
        • See Also
      • 1.2. Installing Apache on Windows
        • Problem
        • Solution
        • Discussion
        • See Also
      • 1.3. Downloading the Apache Sources
        • Problem
        • Solution
        • Discussion
        • See Also
      • 1.4. Building Apache from the Sources
        • Problem
        • Solution
        • Discussion
        • See Also
      • 1.5. Installing with ApacheToolbox
        • Problem
        • Solution
        • Discussion
        • See Also
      • 1.6. Starting, Stopping, and Restarting Apache
        • Problem
        • Solution
        • Discussion
        • See Also
      • 1.7. Uninstalling Apache
        • Problem
        • Solution
        • Discussion
        • See Also
    • 2. Adding Common Modules
      • 2.1. Installing a Generic Third-Party Module
        • Problem
        • Solution
        • Discussion
        • See Also
      • 2.2. Installing mod_dav on a Unixish System
        • Problem
        • Solution
        • Discussion
        • See Also
      • 2.3. Installing mod_dav on Windows
        • Problem
        • Solution
        • Discussion
          • Using Windows Explorer to test mod_dav
        • See Also
      • 2.4. Installing mod_perl on a Unixish System
        • Problem
        • Solution
        • Discussion
        • See Also
      • 2.5. Installing mod_php on a Unixish System
        • Problem
        • Solution
        • Discussion
        • See Also
      • 2.6. Installing mod_php on Windows
        • Problem
        • Solution
        • Discussion
        • See Also
      • 2.7. Installing the mod_snake Python Module
        • Problem
        • Solution
        • Discussion
        • See Also
      • 2.8. Installing mod_ssl
        • Problem
        • Solution
        • Discussion
        • See Also
    • 3. Logging
      • 3.1. Getting More Details in Your Log Entries
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.2. Getting More Detailed Errors
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.3. Logging POST Contents
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.4. Logging a Proxied Client's IP Address
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.5. Logging Client MAC Addresses
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.6. Logging Cookies
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.7. Not Logging Image Requests from Local Pages
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.8. Logging Requests by Day or Hour
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.9. Rotating Logs on the First of the Month
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.10. Logging Hostnames Instead of IP Addresses
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.11. Maintaining Separate Logs for Each Virtual Host
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.12. Logging Proxy Requests
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.13. Logging Errors for Virtual Hosts to Multiple Files
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.14. Logging Server IP Addresses
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.15. Logging the Referring Page
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.16. Logging the Name of the Browser Software
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.17. Logging Arbitrary Request Header Fields
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.18. Logging Arbitrary Response Header Fields
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.19. Logging Activity to a MySQL Database
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.20. Logging to syslog
        • Problem
        • Solution
        • Discussion
        • See Also
      • 3.21. Logging User Directories
        • Problem
        • Solution
        • Discussion
        • See Also
    • 4. Virtual Hosts
      • 4.1. Setting Up Name-Based Virtual Hosts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.2. Designating One Name-Based Virtual Host as the Default
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.3. Setting Up Address-Based Virtual Hosts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.4. Creating a Default Address-Based Virtual Host
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.5. Mixing Address-Based and Name-Based Virtual Hosts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.6. Mass Virtual Hosting with mod_vhost_alias
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.7. Mass Virtual Hosting Using Rewrite Rules
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.8. SSL and Name-Based Virtual Hosts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.9. Logging for Each Virtual Host
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.10. Splitting Up a LogFile
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.11. Port-Based Virtual Hosts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 4.12. Displaying the Same Content on Several Addresses
        • Problem
        • Solution
        • Discussion
        • See Also
    • 5. Aliases, Redirecting, and Rewriting
      • 5.1. Showing Highlighted PHP Source Without Symlinking
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.2. Mapping a URL to a Directory
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.3. Creating a New URL for Existing Content
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.4. Giving Users Their Own URL
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.5. Aliasing Several URLs with a Single Directive
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.6. Mapping Several URLs to the Same CGI Directory
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.7. Creating a CGI Directory for Each User
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.8. Redirecting to Another Location
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.9. Redirecting Several URLs to the Same Destination
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.10. Permitting Case-Insensitive URLs
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.11. Replacing Text in Requested URLs
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.12. Rewriting Path Information to CGI Arguments
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.13. Denying Access to Unreferred Requests
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.14. Rewriting Based on the Query String
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.15. Redirecting Allor Partof Your Server to SSL
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.16. Turning Directories into Hostnames
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.17. Redirecting All Requests to a Single Host
        • Problem
        • Solution
        • Discussion
        • See Also
      • 5.18. Turning Document Names into Arguments
        • Problem
        • Solution
        • Discussion
        • See Also
    • 6. Security
      • 6.1. Using System Account Information for Web Authentication
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.2. Setting Up Single-Use Passwords
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.3. Expiring Passwords
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.4. Limiting Upload Size
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.5. Restricting Images from Being Used Off-Site
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.6. Requiring Both Weak and Strong Authentication
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.7. Managing .htpasswd Files
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.8. Making Password Files for Digest Authentication
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.9. Relaxing Security in a Subdirectory
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.10. Lifting Restrictions Selectively
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.11. Authorizing Using File Ownership
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.12. Storing User Credentials in a MySQL Database
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.13. Accessing the Authenticated Username
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.14. Obtaining the Password Used to Authenticate
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.15. Preventing Brute-Force Password Attacks
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.16. Using Digest Versus Basic Authentication
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.17. Accessing Credentials Embedded in URLs
        • Problem
        • Solution
        • Discussion
      • 6.18. Securing WebDAV
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.19. Enabling WebDAV Without Making Files Writable by the Web User
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.20. Restricting Proxy Access to Certain URLs
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.21. Protecting Files with a Wrapper
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.22. Protecting All Files Except a Subset
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.23. Protecting Server Files from Malicious Scripts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.24. Setting Correct File Permissions
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.25. Running a Minimal Module Set
        • Problem
        • Solution
        • Discussion
          • Apache 1.3
          • Apache 2.0
      • 6.26. Restricting Access to Files Outside Your Web Root
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.27. Limiting Methods by User
        • Problem
        • Solution
        • Discussion
        • See Also
      • 6.28. Restricting Range Requests
        • Problem
        • Solution
        • Discussion
        • See Also
    • 7. SSL
      • 7.1. Installing SSL
        • Problem
        • Solution
        • Discussion
        • See Also
      • 7.2. Generating SSL Certificates
        • Problem
        • Solution
        • Discussion
          • Generating the private key
          • Generating the certificate signing request
          • Signing your key
          • Configuring the server
          • The easy way
        • See Also
      • 7.3. Generating a Trusted CA
        • Problem
        • Solution
        • Discussion
          • Importing the CA
        • See Also
      • 7.4. Serving a Portion of Your Site via SSL
        • Problem
        • Solution
        • Discussion
        • See Also
      • 7.5. Authenticating with Client Certificates
        • Problem
        • Solution
        • Discussion
        • See Also
    • 8. Dynamic Content
      • 8.1. Enabling a CGI Directory
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.2. Enabling CGI Scripts in Non-ScriptAliased Directories
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.3. Using Windows File Extensionsto Launch CGI Programs
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.4. Using Extensions to Identify CGI Scripts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.5. Testing That CGI Is Set Up Correctly
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.6. Reading Form Parameters
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.7. Invoking a CGI Program for Certain Content Types
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.8. Getting SSIs to Work
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.9. Displaying Last Modified Date
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.10. Including a Standard Header
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.11. Including the Output of a CGI Program
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.12. Running CGI Scripts as a Different User with suexec
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.13. Installing a mod_perl Handler from CPAN
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.14. Writing a mod_perl Handler
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.15. Enabling PHP Script Handling
        • Problem
        • Solution
        • Discussion
        • See Also
      • 8.16. Verifying PHP Installation
        • Problem
        • Solution
        • Discussion
        • See Also
    • 9. Error Handling
      • 9.1. Handling a Missing Host Field
        • Problem
        • Solution
        • Discussion
        • See Also
      • 9.2. Changing the Response Status for CGI Scripts
        • Problem
        • Solution
        • Discussion
        • See Also
      • 9.3. Customized Error Messages
        • Problem
        • Solution
        • Discussion
        • See Also
      • 9.4. Providing Error Documents in Multiple Languages
        • Problem
        • Solution
        • Discussion
        • See Also
      • 9.5. Redirecting Invalid URLs to Some Other Page
        • Problem
        • Solution
        • Discussion
        • See Also
      • 9.6. Making Internet Explorer Display Your Error Page
        • Problem
        • Solution
        • Discussion
        • See Also
      • 9.7. Notification on Error Conditions
        • Problem
        • Solution
        • Discussion
        • See Also
    • 10. Proxies
      • 10.1. Securing Your Proxy Server
        • Problem
        • Solution
        • Discussion
        • See Also
      • 10.2. Preventing Your Proxy Server from Being Used as an Open Mail Relay
        • Problem
        • Solution
        • Discussion
        • See Also
      • 10.3. Forwarding Requests to Another Server
        • Problem
        • Solution
        • Discussion
        • See Also
      • 10.4. Blocking Proxied Requests to Certain Places
        • Problem
        • Solution
        • Discussion
        • See Also
      • 10.5. Proxying mod_perl Content to Another Server
        • Problem
        • Solution
        • Discussion
      • 10.6. Configuring a Caching Proxy Server
        • Problem
        • Solution
        • Discussion
        • See Also
      • 10.7. Filtering Proxied Content
        • Problem
        • Solution
        • Discussion
        • See Also
      • 10.8. Requiring Authentication for a Proxied Server
        • Problem
        • Solution
        • Discussion
        • See Also
    • 11. Performance
      • 11.1. Determining How Much Memory You Need
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.2. Benchmarking Apache with ab
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.3. Tuning Keepalive Settings
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.4. Getting a Snapshot of Your Site's Activity
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.5. Avoiding DNS Lookups
        • Problem
        • Solution
        • Discussion
          • HostNameLookups
          • Allow and Deny from hostnames
        • See Also
      • 11.6. Optimizing Symbolic Links
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.7. Minimizing the Performance Impact of .htaccess Files
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.8. Disabling Content Negotiation
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.9. Optimizing Process Creation
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.10. Tuning Thread Creation
        • Problem
        • Solution
        • Discussion
          • Setting the number of threads on single-child MPMs
          • Number of threads when using the worker MPM
          • Setting the number of threads when using Netware or the perchild MPM
        • See Also
      • 11.11. Caching Frequently Viewed Files
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.12. Sharing Load Between Servers Using mod_proxy
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.13. Distributing Load Evenly Between Several Servers
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.14. Caching Directory Listings
        • Problem
        • Solution
        • Discussion
        • See Also
      • 11.15. Speeding Up Perl CGI Programs with mod_perl
        • Problem
        • Solution
        • Discussion
        • See Also
    • 12. Miscellaneous Topics
      • 12.1. Placing Directives Properly
        • Problem
        • Solution
        • Discussion
        • See Also
      • 12.2. Renaming .htaccess Files
        • Problem
        • Solution
        • Discussion
        • See Also
      • 12.3. Generating Directory/Folder Listings
        • Problem
        • Solution
        • Discussion
          • Enabling directory listings
          • Disabling directory indexing below an enabled directory
        • See Also
      • 12.4. Solving the "Trailing Slash" Problem
        • Problem
        • Solution
        • Discussion
          • Incorrect ServerName
          • Invalid Alias directive
        • See Also
      • 12.5. Setting the Content-Type According to Browser Capability
        • Problem
        • Solution
        • Discussion
        • See Also
      • 12.6. Handling Missing Host: Header Fields
        • Problem
        • Solution
        • Discussion
        • See Also
      • 12.7. Alternate Default Document
        • Problem
        • Solution
        • Discussion
        • See Also
      • 12.8. Setting Up a Default "Favicon"
        • Problem
        • Solution
        • Discussion
        • See Also
    • A. Using Regular Expressions in Apache
      • A.1. What Directives Use Regular Expressions?
        • A.1.1. Regular Expression Basics
        • A.1.2. Examples
          • A.1.2.1. Redirecting several URLs
          • A.1.2.2. Catching common misspellings
        • A.1.3. For More Information
    • B. Troubleshooting
      • B.1. Troubleshooting Methodology
        • B.1.1. In the Error Log
        • B.1.2. Characterize the Problem
      • B.2. Debugging the Configuration
      • B.3. Debugging Premature End of Script Headers
      • B.4. Common Problems on Windows
        • B.4.1. Cannot Determine Hostname
        • B.4.2. Finding WS2_32.DLL on Windows
        • B.4.3. Fixing WSADuplicateSocket Errors
        • B.4.4. Handling System Error 1067
      • B.5. Fixing Build-Time Error Messages
        • B.5.1. __inet Symbols
      • B.6. Getting Server-Side Includes to Work
      • B.7. Debugging Rewrites That Result in "Not Found" Errors
      • B.8. .htaccess Files Having No Effect
      • B.9. Address Already in Use
    • About the Authors
    • Colophon
    • SPECIAL OFFER: Upgrade this ebook with OReilly

Dodaj do koszyka Apache Cookbook

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2025 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.