search for books and compare prices
Tables of Contents for Apache Cookbook
Chapter/Section Title
Page #
Page Count
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