Apache cookbook - Ken Coar , Rich Bowen - Librairie Eyrolles

Déjà client ? Identifiez-vous

Mot de passe oublié ?

Nouveau client ?

CRÉER VOTRE COMPTE
Apache cookbook
Ajouter à une liste

Librairie Eyrolles - Paris 5e
Indisponible

Apache cookbook

Apache cookbook

Ken Coar, Rich Bowen

252 pages, parution le 18/12/2003

Résumé

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.

Contents

  • Installation
    • Installing from Red Hat Linux's Packages
    • Installing Apache on Windows
    • Downloading the Apache Sources
    • Building Apache from the Sources
    • Installing with ApacheToolbox
    • Starting, Stopping, and Restarting Apache
    • Uninstalling Apache
  • Adding Common Modules
    • Installing a Generic Third-Party Module
    • Installing mod_dav on a Unixish System
    • Installing mod_dav on Windows
    • Installing mod_perl on a Unixish System
    • Installing mod_php on a Unixish System
    • Installing mod_php on Windows
    • Installing the mod_snake Python Module
    • Installing mod_ssl
  • Logging
    • Getting More Details in Your Log Entries
    • Getting More Detailed Errors
    • Logging POST Contents
    • Logging a Proxied Client's IP Address
    • Logging Client MAC Addresses
    • Logging Cookies
    • Not Logging Image Requests from Local Pages
    • Logging Requests by Day or Hour
    • Rotating Logs on the First of the Month
    • Logging Hostnames Instead of IP Addresses
    • Maintaining Separate Logs for Each Virtual Host
    • Logging Proxy Requests
    • Logging Errors for Virtual Hosts to Multiple Files
    • Logging Server IP Addresses
    • Logging the Referring Page
    • Logging the Name of the Browser Software
    • Logging Arbitrary Request Header Fields
    • Logging Arbitrary Response Header Fields
    • Logging Activity to a MySQL Database
    • Logging to syslog
    • Logging User Directories
  • Virtual Hosts
    • Setting Up Name-Based Virtual Hosts
    • Designating One Name-Based Virtual Host as the Default
    • Setting Up Address-Based Virtual Hosts
    • Creating a Default Address-Based Virtual Host
    • Mixing Address-Based and Name-Based Virtual Hosts
    • Mass Virtual Hosting with mod_vhost_alias
    • Mass Virtual Hosting Using Rewrite Rules
    • SSL and Name-Based Virtual Hosts
    • Logging for Each Virtual Host
    • Splitting Up a LogFile
    • Port-Based Virtual Hosts
    • Displaying the Same Content on Several Addresses
  • Aliases, Redirecting, and Rewriting
    • Showing Highlighted PHP Source Without Symlinking
    • Mapping a URL to a Directory
    • Creating a New URL for Existing Content
    • Giving Users Their Own URL
    • Aliasing Several URLs with a Single Directive
    • Mapping Several URLs to the Same CGI Directory
    • Creating a CGI Directory for Each User
    • Redirecting to Another Location
    • Redirecting Several URLs to the Same Destination
    • Permitting Case-Insensitive URLs
    • Replacing Text in Requested URLs
    • Rewriting Path Information to CGI Arguments
    • Denying Access to Unreferred Requests
    • Rewriting Based on the Query String
    • Redirecting All-or Part-of Your Server to SSL
    • Turning Directories into Hostnames
    • Redirecting All Requests to a Single Host
    • Turning Document Names into Arguments
  • Security
    • Using System Account Information for Web Authentication
    • Setting Up Single-Use Passwords
    • Expiring Passwords
    • Limiting Upload Size
    • Restricting Images from Being Used Off-Site
    • Requiring Both Weak and Strong Authentication
    • Managing .htpasswd Files
    • Making Password Files for Digest Authentication
    • Relaxing Security in a Subdirectory
    • Lifting Restrictions Selectively
    • Authorizing Using File Ownership
    • Storing User Credentials in a MySQL Database
    • Accessing the Authenticated Username
    • Obtaining the Password Used to Authenticate
    • Preventing Brute-Force Password Attacks
    • Using Digest Versus Basic Authentication
    • Accessing Credentials Embedded in URLs
    • Securing WebDAV
    • Enabling WebDAV Without Making Files Writable by the Web User
    • Restricting Proxy Access to Certain URLs
    • Protecting Files with a Wrapper
    • Protecting All Files Except a Subset
    • Protecting Server Files from Malicious Scripts
    • Setting Correct File Permissions
    • Running a Minimal Module Set
    • Restricting Access to Files Outside Your Web Root
    • Limiting Methods by User
    • Restricting Range Requests
  • SSL
    • Installing SSL
    • Generating SSL Certificates
    • Generating a Trusted CA
    • Serving a Portion of Your Site via SSL
    • Authenticating with Client Certificates
  • Dynamic Content
    • Enabling a CGI Directory
    • Enabling CGI Scripts in Non-ScriptAliased Directories
    • Using Windows File Extensions to Launch CGI Programs
    • Using Extensions to Identify CGI Scripts
    • Testing That CGI Is Set Up Correctly
    • Reading Form Parameters
    • Invoking a CGI Program for Certain Content Types
    • Getting SSIs to Work
    • Displaying Last Modified Date
    • Including a Standard Header
    • Including the Output of a CGI Program
    • Running CGI Scripts as a Different User with suexec
    • Installing a mod_perl Handler from CPAN
    • Writing a mod_perl Handler
    • Enabling PHP Script Handling
    • Verifying PHP Installation
  • Error Handling
    • Handling a Missing Host Field
    • Changing the Response Status for CGI Scripts
    • Customized Error Messages
    • Providing Error Documents in Multiple Languages
    • Redirecting Invalid URLs to Some Other Page
    • Making Internet Explorer Display Your Error Page
    • Notification on Error Conditions
  • Proxies
    • Securing Your Proxy Server
    • Preventing Your Proxy Server from Being Used as an Open Mail Relay
    • Forwarding Requests to Another Server
    • Blocking Proxied Requests to Certain Places
    • Proxying mod_perl Content to Another Server
    • Configuring a Caching Proxy Server
    • Filtering Proxied Content
    • Requiring Authentication for a Proxied Server
  • Performance
    • Determining How Much Memory You Need
    • Benchmarking Apache with ab
    • Tuning Keepalive Settings
    • Getting a Snapshot of Your Site's Activity
    • Avoiding DNS Lookups
    • Optimizing Symbolic Links
    • Minimizing the Performance Impact of .htaccess Files
    • Disabling Content Negotiation
    • Optimizing Process Creation
    • Tuning Thread Creation
    • Caching Frequently Viewed Files
    • Sharing Load Between Servers Using mod_proxy
    • Distributing Load Evenly Between Several Servers
    • Caching Directory Listings
    • Speeding Up Perl CGI Programs with mod_perl
  • Miscellaneous Topics
    • Placing Directives Properly
    • Renaming .htaccess Files
    • Generating Directory/Folder Listings
    • Solving the "Trailing Slash" Problem
    • Setting the Content-Type According to Browser Capability
    • Handling Missing Host: Header Fields
    • Alternate Default Document
    • Setting Up a Default "Favicon"
  • A. Using Regular Expressions in Apache
  • B. Troubleshooting
  • Index

L'auteur - Ken Coar

Ken Coar

is a director and vice president of the Apache Software Foundation, and a senior software engineer with IBM. He has more than two decades of experience with software engineering and system administration. Ken has worked with the Web since 1992 and, in addition to working on Apache and PHP, is heading the project to develop Internet RFCs for CGI. He is an online columnist for LinuxPlanet.Com.

L'auteur - Rich Bowen

Rich Bowen

is a systems administrator at DataBeam Corporation. He runs RCBowen.com, whose clients include General Motors Desert Proving Ground, Qualcomm, Delphi, and Textron.

Caractéristiques techniques

  PAPIER
Éditeur(s) O'Reilly
Auteur(s) Ken Coar, Rich Bowen
Parution 18/12/2003
Nb. de pages 252
Format 17,7 x 23,5
Couverture Broché
Poids 405g
Intérieur Noir et Blanc
EAN13 9780596001919
ISBN13 978-0-596-00191-9

Avantages Eyrolles.com

Livraison à partir de 0,01 en France métropolitaine
Paiement en ligne SÉCURISÉ
Livraison dans le monde
Retour sous 15 jours
+ d'un million et demi de livres disponibles
satisfait ou remboursé
Satisfait ou remboursé
Paiement sécurisé
modes de paiement
Paiement à l'expédition
partout dans le monde
Livraison partout dans le monde
Service clients sav@commande.eyrolles.com
librairie française
Librairie française depuis 1925
Recevez nos newsletters
Vous serez régulièrement informé(e) de toutes nos actualités.
Inscription