Atnaujinkite slapukų nuostatas

El. knyga: Apache Cookbook

3.68/5 (94 ratings by Goodreads)
  • Formatas: 256 pages
  • Išleidimo metai: 18-Nov-2003
  • Leidėjas: O'Reilly Media
  • Kalba: eng
  • ISBN-13: 9780596551872
  • Formatas: 256 pages
  • Išleidimo metai: 18-Nov-2003
  • Leidėjas: O'Reilly Media
  • Kalba: eng
  • ISBN-13: 9780596551872

DRM apribojimai

  • Kopijuoti:

    neleidžiama

  • Spausdinti:

    neleidžiama

  • El. knygos naudojimas:

    Skaitmeninių teisių valdymas (DRM)
    Leidykla pateikė šią knygą šifruota forma, o tai reiškia, kad norint ją atrakinti ir perskaityti reikia įdiegti nemokamą programinę įrangą. Norint skaityti šią el. knygą, turite susikurti Adobe ID . Daugiau informacijos  čia. El. knygą galima atsisiųsti į 6 įrenginius (vienas vartotojas su tuo pačiu Adobe ID).

    Reikalinga programinė įranga
    Norint skaityti šią el. knygą mobiliajame įrenginyje (telefone ar planšetiniame kompiuteryje), turite įdiegti šią nemokamą programėlę: PocketBook Reader (iOS / Android)

    Norint skaityti šią el. knygą asmeniniame arba „Mac“ kompiuteryje, Jums reikalinga  Adobe Digital Editions “ (tai nemokama programa, specialiai sukurta el. knygoms. Tai nėra tas pats, kas „Adobe Reader“, kurią tikriausiai jau turite savo kompiuteryje.)

    Negalite skaityti šios el. knygos naudodami „Amazon Kindle“.

Another in the very useful O'Reilly series, which provides solutions and "how-to" advice for users of specific computer technology. The focus here is on Apache the software that currently runs over half the web sites throughout the world and on making Apache do exactly what is needed using the various options and "extensions" provided as part of the package (distributed by the Apache Software Foundation). Over 150 "recipes" cover broad topics such as installing the software, adding modules (e.g. perl), logging, hosting multiple sites, and handling aliases, security, dynamic content (cgi-bin), and performance. Each recipe consists of a problem, solution, and discussion, with cross-references to related recipes and web links; many require less than a page, and rarely are they more than two pages. This book should be kept close by and used as a reference as questions and problems arise. Annotation ©2004 Book News, Inc., Portland, OR (booknews.com)

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.

Recenzijos

"The range of recipes is excellent, covering ust about every task you'd be likely to throw at Apache, from complex redirects to performance tweaking and error handling... Apached Cookbook offers a pleasant, highly usable guide which should ensure the smooth, successful running of many a website" - Martin Howse, Linux User & Developer

Preface xi
Installation
1(18)
Installing from Red Hat Linux's Packages
2(1)
Installing Apache on Windows
3(7)
Downloading the Apache Sources
10(1)
Building Apache from the Sources
11(2)
Installing with Apache Toolbox
13(2)
Starting, Stopping, and Restarting Apache
15(1)
Uninstalling Apache
16(3)
Adding Common Modules
19(13)
Installing a Generic Third-Party Module
20(1)
Installing mod_dav on a Unixish System
20(3)
Installing mod_dav on Windows
23(2)
Installing mod_perl on a Unixish System
25(2)
Installing mod_php on a Unixish System
27(1)
Installing mod_php on Windows
28(1)
Installing the mod_snake Python Module
29(1)
Installing mod_ssl
30(2)
Logging
32(26)
Getting More Details in Your Log Entries
35(1)
Getting More Detailed Errors
36(2)
Logging POST Contents
38(1)
Logging a Proxied Client's IP Address
39(1)
Logging Client MAC Addresses
39(1)
Logging Cookies
40(2)
Not Logging Image Requests from Local Pages
42(1)
Logging Requests by Day or Hour
43(1)
Rotating Logs on the First of the Month
44(1)
Logging Hostnames Instead of IP Addresses
45(1)
Maintaining Separate Logs for Each Virtual Host
46(1)
Logging Proxy Requests
47(1)
Logging Errors for Virtual Hosts to Multiple Files
48(1)
Logging Server IP Addresses
49(1)
Logging the Referring Page
50(1)
Logging the Name of the Browser Software
51(1)
Logging Arbitrary Request Header Fields
51(1)
Logging Arbitrary Response Header Fields
52(1)
Logging Activity to a MySQL Database
53(1)
Logging to syslog
54(1)
Logging User Directories
55(3)
Virtual Hosts
58(14)
Setting Up Name-Based Virtual Hosts
59(2)
Designating One Name-Based Virtual Host as the Default
61(1)
Setting Up Address-Based Virtual Hosts
62(1)
Creating a Default Address-Based Virtual Host
62(1)
Mixing Address-Based and Name-Based Virtual Hosts
63(1)
Mass Virtual Hosting with mod_vhost_alias
64(2)
Mass Virtual Hosting Using Rewrite Rules
66(1)
SSL and Name-Based Virtual Hosts
67(1)
Logging for Each Virtual Host
68(1)
Splitting Up a LogFile
69(1)
Port-Based Virtual Hosts
70(1)
Displaying the Same Content on Several Addresses
71(1)
Aliases, Redirecting, and Rewriting
72(19)
Showing Highlighted PHP Source Without Symlinking
72(2)
Mapping a URL to a Directory
74(1)
Creating a New URL for Existing Content
75(1)
Giving Users Their Own URL
76(3)
Aliasing Several URLs with a Single Directive
79(1)
Mapping Several URLs to the Same CGI Directory
79(1)
Creating a CGI Directory for Each User
80(1)
Redirecting to Another Location
81(2)
Redirecting Several URLs to the Same Destination
83(1)
Permitting Case-Insensitive URLs
83(1)
Replacing Text in Requested URLs
84(1)
Rewriting Path Information to CGI Arguments
85(1)
Denying Access to Unreferred Requests
86(1)
Rewriting Based on the Query String
87(1)
Redirecting All---or Part---of Your Server to SSL
87(1)
Turning Directories into Hostnames
88(1)
Redirecting All Requests to a Single Host
89(1)
Turning Document Names into Arguments
90(1)
Security
91(39)
Using System Account Information for Web Authentication
92(2)
Setting Up Single-Use Passwords
94(1)
Expiring Passwords
95(2)
Limiting Upload Size
97(2)
Restricting Images from Being Used Off-Site
99(1)
Requiring Both Weak and Strong Authentication
100(1)
Managing .htpasswd Files
101(2)
Making Password Files for Digest Authentication
103(1)
Relaxing Security in a Subdirectory
104(2)
Lifting Restrictions Selectively
106(1)
Authorizing Using File Ownership
107(1)
Storing User Credentials in a MySQL Database
108(2)
Accessing the Authenticated Username
110(1)
Obtaining the Password Used to Authenticate
110(1)
Preventing Brute-Force Password Attacks
111(1)
Using Digest Versus Basic Authentication
112(1)
Accessing Credentials Embedded in URLs
113(1)
Securing WebDAV
114(1)
Enabling WebDAV Without Making Files Writable by the Web User
115(1)
Restricting Proxy Access to Certain URLs
116(1)
Protecting Files with a Wrapper
117(2)
Protecting All Files Except a Subset
119(1)
Protecting Server Files from Malicious Scripts
120(1)
Setting Correct File Permissions
121(2)
Running a Minimal Module Set
123(2)
Restricting Access to Files Outside Your Web Root
125(1)
Limiting Methods by User
126(1)
Restricting Range Requests
127(3)
SSL
130(10)
Installing SSL
130(2)
Generating SSL Certificates
132(3)
Generating a Trusted CA
135(1)
Serving a Portion of Your Site via SSL
136(2)
Authenticating with Client Certificates
138(2)
Dynamic Content
140(22)
Enabling a CGI Directory
140(1)
Enabling CGI Scripts in Non-ScriptAliased Directories
141(1)
Using Windows File Extensions to Launch CGI Programs
142(1)
Using Extensions to Identify CGI Scripts
143(1)
Testing That CGI Is Set Up Correctly
144(3)
Reading Form Parameters
147(2)
Invoking a CGI Program for Certain Content Types
149(2)
Getting SSIs to Work
151(1)
Displaying Last Modified Date
152(1)
Including a Standard Header
153(1)
Including the Output of a CGI Program
154(1)
Running CGI Scripts as a Different User with suexec
155(2)
Installing a mod_perl Handler from CPAN
157(1)
Writing a mod_perl Handler
158(1)
Enabling PHP Script Handling
159(1)
Verifying PHP Installation
160(2)
Error Handling
162(8)
Handling a Missing Host Field
162(1)
Changing the Response Status for CGI Scripts
163(1)
Customized Error Messages
164(1)
Providing Error Documents in Multiple Languages
165(1)
Redirecting Invalid URLs to Some Other Page
166(1)
Making Internet Explorer Display Your Error Page
167(1)
Notification on Error Conditions
168(2)
Proxies
170(8)
Securing Your Proxy Server
170(2)
Preventing Your Proxy Server from Being Used as an Open Mail Relay
172(1)
Forwarding Requests to Another Server
173(1)
Blocking Proxied Requests to Certain Places
174(1)
Proxying mod_perl Content to Another Server
174(1)
Configuring a Caching Proxy Server
175(1)
Filtering Proxied Content
176(1)
Requiring Authentication for a Proxied Server
177(1)
Performance
178(22)
Determining How Much Memory You Need
179(1)
Benchmarking Apache with ab
180(1)
Tuning Keepalive Settings
181(2)
Getting a Snapshot of Your Site's Activity
183(1)
Avoiding DNS Lookups
184(1)
Optimizing Symbolic Links
185(1)
Minimizing the Performance Impact of .htaccess Files
186(2)
Disabling Content Negotiation
188(2)
Optimizing Process Creation
190(1)
Tuning Thread Creation
191(2)
Caching Frequently Viewed Files
193(1)
Sharing Load Between Servers Using mod_proxy
194(1)
Distributing Load Evenly Between Several Servers
195(1)
Caching Directory Listings
196(1)
Speeding Up Perl CGI Programs with mod_perl
197(3)
Miscellaneous Topics
200(11)
Placing Directives Properly
200(2)
Renaming .htaccess Files
202(1)
Generating Directory/Folder Listings
203(2)
Solving the ``Trailing Slash'' Problem
205(1)
Setting the Content-Type According to Browser Capability
206(1)
Handling Missing Host: Header Fields
207(1)
Alternate Default Document
207(1)
Setting Up a Default ``Favicon''
208(3)
A. Using Regular Expressions in Apache 211(4)
B. Troubleshooting 215(10)
Index 225


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.