Apache cookbook
Synopsis
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
Commander ce livre au
prix de
29,00
€
27,55
€
Classé sous : Apache, Cgi, Virtual, Logging, Installing
Livres en rapport
|
Derniers Blogs
GESTION D'EXCEPTION AVEC LES TASKSGESTION D'EXCEPTION AVEC LES TASKS par richardc
Nous avons vu dans un précédent article comment utiliser Task pour effectuer des opérations dans un autre thread.
Malheureusement, comme tout le monde n'est pas parfait, il se peut que cette exécution se passe mal et qu'une exception se produise.
La...
Cliquez pour lire la suite de l'article par richardc DéMARRONS AVEC LES TASKSDéMARRONS AVEC LES TASKS par richardc
Que vous le vouliez ou non, le développement multi-tâche est maintenant une obligation pour toute nouvelle application. Il est donc vital d'en comprendre les mécanismes et de s'y mettre le plus tôt possible.
En attendant le .NET Framework 4.5 avec le...
Cliquez pour lire la suite de l'article par richardc SLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPSSLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPS par Vko
Retrouvez les slides et les démo de ma session Fast & Furious XAML Apps. A ceux qui se posent la question : "est-ce que le code de la DataGrid est disponible?", je vous répondrais "pas encore". Je vais mettre en place un projet codeplex pour part...
Cliquez pour lire la suite de l'article par Vko XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|