Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
CHAPTER
Apache Rocks On
Apache: The Beginning
The Apache Feature List
Understanding Apache 2.0 Architecture
Multiprocessing modules
Filtering I/O
New CGI daemon
Apache Portable Run-Time
Understanding the Apache License
The Official Source for Apache
System Requirements
Requirements for running an Apache Web server
Downloading the Software
Installing Apache from Source Code
Configuring Apache source
Compiling and installing Apache
Installing Apache from RPM Binary Packages
Keeping Up with Apache Development
Configuring Apache
Configuring the global environment for Apache
Configuring the main server
Starting and Stopping Apache
Starting Apache
Restarting Apache
Stopping Apache
Testing Apache
Apache Directive Contexts
Server config context
Container context
Per-directory context
General Configuration Directives
AccessFileName
AddDefaultCharset
ContentDigest
DefaultType
DocumentRoot
ErrorDocument
<IfDefine>
<IfModule>
</IfModule>
Include
Options
Port
ServerAdmin
ServerName
ServerRoot
ServerSignature
ServerTokens
SetInputFilter
SetOutputFilter
Controlling Apache processes
Making persistent connections
Controlling system resources
Using dynamic modules
Standard Container Directives
<Directory>
<DirectoryMatch>
<Files>
<FilesMatch>
<Location>
<LocationMatch>
Virtual Host-Specific Directives
NameVirtualHost
ServerAlias
</VirtualHost>
ServerPath
<VirtualHost>
Logging Directives
LogLevel
PidFile
ScoreBoardFile
Authentication and Security Directives
AllowOverride
AuthName
AuthType
HostNameLookups
IdentityCheck
<Limit>
<LimitExcept>
LimitRequestBody
LimitRequestFields
LimitRequestFieldsize
LimitRequestLine
Require
Satisfy
ScriptInterpreterSource
MPM threaded-Specific Directives
CoreDumpDirectory
Group
Listen
ListenBacklog
LockFile
MaxClients
MaxRequestsPerChild
MaxSpareThreads
MinSpareThreads
SendBufferSize
StartServers
ThreadsPerChild
User
MPM perchild-Specific Directives
AssignUserID
ChildPerUserID
ConnectionStatus
MaxThreadsPerChild
NumServers
StartThreads
MPM winnt-Specific Directives
MPM prefork Specific Directives
MaxSpareServers
MinSpareServers
An Overview of the Modules
Environment-Related Modules
mod_env
mod_setenvif
mod_unique_id
Authentication and Access Control Modules
mod_auth_anon
mod_auth_dbm
mod_auth_db
Dynamic Contents Generation Modules
mod_actions
mod_ext_filter
Content-Type Configuration Modules
mod_mime
mod_mime_magic
mod_negotiation
Directory Listing Modules
Directory-Listing Modules
mod_dir
mod_autoindex
Response Header Modules
Response-Header Modules
mod_asis
mod_headers
mod_expires
mod_cern_meta
Server Information and Logging Modules
mod_log_config
mod_status
mod_info
mod_usertrack
URL Mapping Modules
mod_userdir
mod_alias
mod_speling
mod_vhost_alias
Miscellaneous Modules
mod_so
mod_imap
mod_file_cache
mod_dav
Understanding Apache’s Virtual Hosting Capabilities
Setting Up a Virtual Host
Name-based virtual hosts
IP-based virtual hosts
Multiple main servers as virtual hosts
Configuring DNS for a Virtual Host
Setting User and Group per Virtual Host
Managing a Large Number of Virtual Hosts
Automating Virtual Host Configuration using mod_perl
Generating Virtual Host Configuration By Using the makesite Script
Managing Virtual Hosts By Using MySQL with mod_v2h Module
Authentication vs. Authorization
Understanding How Authentication Works
Authenticating Users Via the mod_auth Module
Understanding the mod_auth directives
Creating a members-only section in your Web site
Creating a members-only section using a .htaccess file
Grouping users for restricted access to different Web sections
Authorizing Access via Host Name or IP Addresses
allow directive
deny directive
order directive
Combining Authentication and Authorization
Authenticating with a Relational Database
Using MySQL database server for authentication
Using other databases for user authentication
Managing Users and Groups in Any RDBM
Secure Authenticated Sessions Using Cookies
Monitoring Apache
Accessing configuration information with mod_info
Enabling status pages with mod_status
Creating Log Files
TransferLog directive
LogFormat directive
CustomLog directive
CookieLog directive
Customizing Your Log Files
Creating Multiple Log Files
Logging Cookies
Using Error Logs
Analyzing Your Log Files
Log Maintenance
Using rotatelog
Using logrotate
Using logresolve
RewriteEngine
RewriteOptions
RewriteRule
RewriteCond
RewriteMap
RewriteBase
RewriteLog
RewriteLogLevel
RewriteLock
URL Layout
Expanding a requested URL to a canonical URL
Figure 9-2:Expanding a requested URL to a canonical URL
Redirecting a user home directory to a new Web server
Searching for a page in multiple directories
Setting an environment variable based on a URL
Creating www.username.domain.com sites
Redirecting a failing URL to another Web server
Creating an access multiplexer
Creating time-sensitive URLs
Content Handling
Adding backward compatibility in URLs
Creating browser-matched content URLs
Creating an HTML to CGI gateway
Access Restriction
Blocking robots
Creating an HTTP referer-based URL deflector
Who Should Use a Proxy Server?
Understanding Types of Proxy Servers
Forward proxy
Reverse proxy
mod_proxy Directives
ProxyRequests
ProxyRemote
ProxyPass
ProxyBlock
NoProxy
ProxyDomain
CacheRoot
CacheSize
CacheGcInterval
CacheMaxExpire
CacheLastModifiedFactor
CacheDirLength
CacheDirLevels
CacheDefaultExpire
NoCache
NoCache *
Configuring an Apache Proxy Server
Scenario 1: Connecting a private IP network to the Internet
Scenario 2: Caching remote Web sites
Scenario 3: Mirroring a Web site
Setting Up Web Browsers to use a Proxy
Manual proxy configuration
Automatic proxy configuration
Setting return values for FindProxyForURL
Using pre-defined functions in FindProxyForURL
What Is a Web Development Cycle?
Putting the Web Cycle into Action
Setting up for the Web cycle
Implementing the Web cycle
Building a Web Site by Using Templates and makepage
Using HTTP PUT for Intranet Web Publishing
Understanding the directives in mod_put module
Compiling and installing mod_put
Setting up a PUT-enabled Web directory
Setting up a virtual host to use mod_put module
Maintaining Your Web Site
Online backup
Offline backup
Dynamic application development policy
Giving Your Web Site a User-Friendly Interface
Make your site easy to navigate
Create an appealing design
Remove cryptic error messages
Test your Web GUI
Promoting Your Web Site
What Is CGI?
GET requests
Enabling cgi-bin access for your users
Creating new CGI extensions by using AddType
Running CGI Programs
Writing CGI Scripts in Perl
Enabling CGI Debugging Support in Apache
ScriptLog
ScriptLogBuffer
Debugging Your Perl-Based CGI Scripts
Debugging from the command line
Debugging by using logging and debug printing
Debugging with CGI::Debug
What Is a Server Side Include?
Configuring Apache for SSI
Enabling SSI for an entire directory
Enabling SSI for a specific file type
Using XBitHack for .htm or .html files
Using SSI Commands
config
echo
exec
fsize
flastmod
include
printenv
SSI Variables
Flow Control Commands
What is FastCGI?
Achieving high performance by using caching
Scalability through distributed applications
Understanding How FastCGI Works
Basic architecture of a FastCGI application
Different types of FastCGI applications
Migrating from CGI to FastCGI
Things to keep in mind about migrating
Migrating a sample script
Setting Up FastCGI for Apache
FastCGI directives for Apache
Configuring httpd.conf for FastCGI
Understanding How PHP Works
Bringing PHP to Your Company
Prerequisites for PHP
Compiling and Installing PHP
Building PHP as a CGI solution
Building PHP as an Apache module
Configuring Apache for PHP
Configuring PHP by Using php.ini
PHP directives in httpd.conf
PHP Directives directives in php.ini
Working with PHP
Creating a simple command-line PHP script
Creating simple PHP Web pages
Using a PHP script as a Server-Side Include
Using a PHP page for a directory index
Using include files
Enhancing error handling with PHP
Processing Web forms with PHP
Creating sessions with PHP
Using MySQL with PHP
Creating a simple PHP page to access a MySQL database
Securing PHP include files
Authenticating users with PHP and MySQL
Compiling and Installing mod_perl
Compiling and installing mod_perl
Running CGI Scripts by Using mod_perl
Don’t Reinvent the Wheel
Creating mod_perl Module By Using the Perl API for Apache
Using CGI.pm to Write mod_perl Modules
Preloading Perl Modules to Save Memory
Keeping Track of mod_perl Modules inMemory
Implementing ASP by Using the Apache::ASP Module
Why Use Servlets?
Installing Tomcat
Installing the latest JDK for Tomcat
Installing Tomcat and the mod_jk module
Configuring Tomcat
Configuring Tomcat for Apache
Configuring Tomcat to use the Java Security Manager
Configuring Apache for Servlets and JSP
Working with Tomcat
Disabling Tomcat’s default HTTP service
Starting and stopping Tomcat
Starting Tomcat with a shell wrapper script
Running Java servlets
Understanding Web Security
Understanding Web security
The Security Checkpoints
Checkpoint 1: Your network
Checkpoint 2: The operating system
Checkpoint 3: Web server software
Choosing a Security Configuration
Security policy considerations
A sensible security configuration for Apache
The Sacrificial Lamb Configuration
The Paranoid Configuration
Protecting Your Web Contents
Content-publishing guidelines
Protecting your contents from robots and spiders
Logging and Security
CustomLog and ErrorLog
What to do if you see unusual access in your log files
Securing Your CGI Implementation
Fending off CGI Risks with smart programming
Keeping user input secure
Wrapping CGI Scripts
Hiding clues about your CGI scripts
Using CGI Scanners
Reducing SSI Risks
Introducing SSL
How SSL Works
Choosing Apache-SSL instead of mod_ssl for SSL support
Getting a Certificate
Getting a server certificate from a commercial CA
Generating a private key
Generating a certificate signing request
Creating a private certificate authority
Accessing SSL pages
Downloading Apache for Windows
Installing Apache Binaries
Running Apache
Running Apache automatically as a Windows service
Managing Apache from the Start menu
Managing Apache from the command-line
Running multiple Apache services
Windows httpd.conf Syntax
Tuning Apache for Performance
Testing Apache Configuration
Managing Apache with Comanche
Configuring Apache for Dynamic Contents
Running Perl-based CGI scripts
Running mod_perl scripts
Running PHP scripts
Running ISAPI extensions with mod_isapi
UserDir in Windows
Using High-Performance Hardware
Hard drive
Ethernet card
Tuning Linux’s ext2 File System
Changing the block size of the ext2 filesystem
Tuning the ext2 file system with e2fsprogs
Tuning Your Operating System
Compiling and installing a custom kernel
Tuning your system for demanding Web applications
Making your Apache Server software lean and mean
Tuning Your Network
Using fast Ethernet
Understanding and controlling network traffic flow
Balancing load using the DNS server
Using load-balancing hardware
Tuning the Apache Configuration
Minimizing DNS lookups
Speeding up static file serving
Tuning your configuration using ApacheBench
Caching for Speed
Caching frequently used files in memory with mod_fcache
Getting slick with the Squid proxy-caching server
Going with FastCGI instead of mod_perl
Enhancing DNS Reliability
Load Balancing Your Web Network
Distributing HTTP requests with Round-Robin DNS
Managing Web Storage
RAID, SAN, or Storage Appliances
Tuning your hard drives
Tuning ext2 Filesystem
Sharing drive space with NFS server
Replicating contents among Web servers
Using rdist to distribute files
Creating a RAM-based file system
Enabling a RAM-based file system
Creating a Reliable Back-end Network
Fortifying Your Web Network
Using Tripwire to protect your Web contents
Index
0 of .
Results for:
No results containing your search query
P. 1
Apache Server 2 Bible

Apache Server 2 Bible

Ratings: (0)|Views: 82 |Likes:
Published by ayyappan.ashok6713

More info:

Published by: ayyappan.ashok6713 on Jun 07, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/07/2011

pdf

text

original

You're Reading a Free Preview
Pages 16 to 354 are not shown in this preview.
You're Reading a Free Preview
Pages 370 to 575 are not shown in this preview.
You're Reading a Free Preview
Pages 591 to 652 are not shown in this preview.
You're Reading a Free Preview
Pages 668 to 771 are not shown in this preview.
You're Reading a Free Preview
Pages 787 to 793 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->