Sams Teach Yourself Apache 2 in 24 Hours

Similar documents
Sams Teach Yourself Java 2 in 21 Days, Fourth Edition. Copyright 2004 by Sams Publishing. International Standard Book Number:

Sams Teach Yourself ASP.NET in 24 Hours

Sams Teach Yourself ASP.NET in 24 Hours

Genesys Interaction Recording Solution Guide. WebDAV Requirements

Eclipse Kick Start. Copyright 2005 by Sams Publishing. International Standard Book Number:

Certification. The HTTP Service

Red Hat Linux 8 Unleashed. Copyright 2003 by Sams Publishing. International Standard Book Number: X. Warning and Disclaimer

Zend PHP Certification Study Guide. Copyright 2005 by Sams Publishing. International Standard Book Number: Warning and Disclaimer

Apache Web Server Administration for Windows

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

How A Website Works. - Shobha

The Ruby Way. Copyright 2003 by Que Publishing. International Standard Book Number: Warning and Disclaimer

[ Due: N.A ] [ Points: PRICELESS ] [ Date: 2/9/2016] [ Goings, Jesse ] Computer Network Specialist Center For Arts and Technology College Kelowna BC

Apache Web Server Administration for Linux

CCNA Security Official Cert Guide First Edition. Copyright 2015 Cisco Systems, Inc. ISBN-10: ISBN-13:

A PAtCHy server: developed by the Apache group formed 2/95 around by a number of people who provided patch files for NCSA httpd 1.3 by Rob McCool.

Server Installation Guide

A+ Exam Cram 2. Copyright 2003 by Que Publishing. International Standard Book Number: Warning and Disclaimer

MCSE Windows 2000 Network Infrastructure Training Guide Exam (70-216) Dave Bixler, Larry Chambers, and Joseph Phillips

Oracle Fusion Middleware

HTTP Reading: Section and COS 461: Computer Networks Spring 2013

Advanced PHP Programming

Apache Httpd Manual Conf Virtualhost Redirect

Novell Access Manager

Lecture Overview. IN5290 Ethical Hacking. Lecture 4: Web hacking 1, Client side bypass, Tampering data, Brute-forcing

Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess. 31 st Oct - 4 th Nov Blantyre, Malawi. Dorcas Muthoni.

Apache Httpd Manual Conf File Location Windows 7

Mac OS X Server Web Technologies Administration. For Version 10.3 or Later

Ensim PS Administrator Release Notes

CustomLog /var/www/vhosts/example.com/statistics/logs/access_log common

HTTP Protocol and Server-Side Basics

Installing MySQL Subscriber Database

3. WWW and HTTP. Fig.3.1 Architecture of WWW

Novell Access Manager

Surround SCM. Installation Guide Version

Java 2 Programmer Exam Cram 2

Novell Access Manager

Uniform Resource Locators (URL)

All Your URI are Belong to Us

Apache + PHP + MySQL. bdnog November 2017 Dhaka, Bangladesh

Understanding the Network: A practical Guide to Internetworking Michael J. Martin

TestTrack. Installation Guide Version

This guide consists of the following two chapters and an appendix. Chapter 1 Installing ETERNUSmgr This chapter describes how to install ETERNUSmgr.

This material is based on work supported by the National Science Foundation under Grant No

Installing MyDNS And The MyDNSConfig Control Panel On Fedora 8

COPYRIGHTED MATERIAL

User authentication, passwords

M3-R3: INTERNET AND WEB DESIGN

CNIT 129S: Securing Web Applications. Ch 10: Attacking Back-End Components

CHAPTER 7 WEB SERVERS AND WEB BROWSERS

Using.htaccess to Restrict OU Directory by Usernames and Passwords in an.htpasswd File

WLprinter Web-to-local print solution Version 0.9

Agile Customer Needs Management

How to Configure Authentication and Access Control (AAA)

Software Installation Manual

Web Servers and Security

CSET 4150 Web System Administration (3 semester credit hours) IT Required

CCNA Practice Questions Exam Cram 2. Copyright 2004 by Que Publishing. International Standard Book Number: Warning and Disclaimer

DxR clinician INSTRUCTOR MANUAL STUDENT USER MANUAL TECHNICAL APPENDIX

Tanium IaaS Cloud Solution Deployment Guide for Microsoft Azure

CMPE 151: Network Administration. Servers

In!order!to!enable!this!functionality,!three!files!must!be!employed!on!the!webserver:!

MCAD/MCSD Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Training Guide: Exam

Deltek Maconomy. Navigator Installation

HP IDOL Site Admin. Software Version: Installation Guide

Installing and Configuring VMware Identity Manager Connector (Windows) OCT 2018 VMware Identity Manager VMware Identity Manager 3.

ENTRUST CONNECTOR Installation and Configuration Guide Version April 21, 2017

app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name = 'World' return 'Hello, ' + name + '!' if name == " main "

CSN09101 Networked Services. Module Leader: Dr Gordon Russell Lecturers: G. Russell

This guide consists of the following two chapters and an appendix. Chapter 1 Installing ETERNUSmgr This chapter describes how to install ETERNUSmgr.

Users Guide. Kerio Technologies

DAY 2! Logs, Aliases, Redirects, Rewrites, and More! Oh My! Thursday, November 8, 12

Office Administrator

Novell Data Synchronizer 1.2

Traditional Web Based Systems

Getting Started with. Management Portal. Version

Cambium Wireless Manager

Architecture. Steven M. Bellovin October 31,

Microsoft Exchange Server 2013 and 2016 Deployment

Quick Start Access Manager 3.1 SP5 January 2013

Apache Toolbox Help Modules Description

Destiny Library Manager

WEB TECHNOLOGIES CHAPTER 1

BrightStor ARCserve Backup for Linux

How to Set Up External CA VPN Certificates

Twiki Installation Notes. Ned Brush 4/13/06. Everything is left as is (default settings) unless specified below. Distribution: RHEL 4

Intel Small Business Extended Access. Deployment Guide

Genesys Administrator Extension Deployment Guide. Prerequisites for Genesys Administrator Extension Modules

Configuring User Defined Patterns

VMware Content Gateway to Unified Access Gateway Migration Guide

KEIL software. Index of contents UPDATE. 1. Important information 1.1. What has changed?

User Manual of the Pre-built Ubuntu Virtual Machine

Release Notes. Lavastorm Analytics Engine 6.1.3

Apache Tomcat Installation guide step by step on windows

1. Oracle mod_plsql v in Oracle9i Application Server v1.0.2.x (Oracle9iAS v1.0.2.x)

Kaseya 2. Quick Start Guide. for Network Monitor 4.1

Oracle Enterprise Manager

SAML-Based SSO Configuration

SOA Software Platform 7.x: Configuring a Standalone Container

Chapter 2. Application Layer

Transcription:

Sams Teach Yourself Apache 2 in 24 Hours Copyright 2002 by Sams Publishing International Standard Book Number: 0-672-32355-9 Warning and Disclaimer Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an "as is" basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book. When reviewing corrections, always check the print number of your book. Corrections are made to printed books with each subsequent printing. To determine the printing of your book, view the copyright page. The print number is right-most number on the line below the "First Printing" line. For example, the following indicates the 4 th printing of a title. First Printing: June 2002 05 04 03 02 4 3 2 1

Misprint Page 12, sentence directly above Figure 1.4 Figure 1.4 shows how a browser displays the information receieved in Figure 1.3. Page 18, fifth paragraph, first sentence No serious remote vulnerabilities have been discovered in Apache for years. Page 31, second sentence at top of page Additional modules can be found in Hour 24, "Apache Software Foundation Projects." Page 49, first sentence of Red Hat bullet Although at the time this book was written, Red Hat did not offer a 2.0-based Web server, it is likely to do so in the future as part of its secure and commerce servers. page 54, Table 4.1 Missing Red Hat Linux column Correction Figure 1.4 shows how a browser displays the information receieved in Listing 1.2. Only one serious remote vulnerability has been discovered in Apache in several years. Additional modules can be found in Hour 24, "Additional Apache Modules and Projects." At the time this book was written, Red Hat just announced it will be building Apache 2.0 with Red Hat Linux, and it is likely to do so in the future as part of its secure and commerce servers. Section Red Hat Linux Default install path /etc/httpd Binaries and /usr/sbin/httpd support scripts /usr/bin/ /usr/sbin/ Log files /var/log/httpd

Configuration files /etc/httpd/conf/httpd.conf CGI scripts /var/www/cgi-bin/ Build information /usr/include/httpd/ and header files Error messages /var/www/error Modules and libraries /usr/pib/httpd/modules /usr/pib HTML documents /var/www/html/ Icons /var/www/icons Manual /usr/share/man/ /usr/share/docs/httpd-2.0.x page 54, first paragraph under Table 4.1 Add a sentence to the end of the paragraph. If you are using Red Hat's rpm version of Apache 2.0, you can use the script at /etc/rc.d/init.d/httpd.

page 55, paragraph under "Build information and Header Files" Add a sentence to the end. page 55, last paragraph on page The directory names and locations vary depending on the operating system or distribution vendor. Table 4.1 describes where you can find the files in Unix and Windows. The table should have included the location of Apache 2 files in major Linux distributions such as Red Hat, but at the time of writing this book there were no RPM packages available. page 59, lines 8 and 10 of Listing 4.1 continued 8: <Files "\.(gif jpg)"> 10: </Files> If you are using an rpm version of Apache 2, such as the one included with Red Hat Linux, you will need to install an additional development rpm package. The directory names and locations vary depending on the operating system or distribution vendor. Table 4.1 describes where you can find the files in Unix, Windows, and Red Hat Linux. 8: <FilesMatch "\.(gif jpg)"> 10: </FilesMatch> page 63, Figure 4.2 "HTTP status code" and "Number of bytes transmitted" callouts "HTTP status code" should bracket 200 "Number of bytes transmitted" should bracket 1456 Page 65, first sentence under Controlling Apache on Windows should have a footnote 1 marked after executable: Page 66, sentence directly above Starting Apache for the First Time Some OS distributions might provide you with additional scripts to control Apache. Page 75, first sentence of paragraph above the note To enable spelling checks, you can add CheckSpelling onto your Apache configuration. Footnote should read: Starting with Apache 2.0.39, you can also do the same on Unix. Some OS distributions might provide you with additional scripts to control Apache, for example in Red Hat Linux you can use /etc/rc.d/init.d/httpd. To enable spelling checks, you can add CheckSpelling on to your Apache configuration.

Page 78, sentence above MIME Types The mod_rewrite module allows complex redirection rules and is explained in Hour 22, "mod_rewrite." The mod_rewrite module allows complex redirection rules and is explained in Hour 22, "Dynamic URI resolution with mod_rewrite." Page 119, Listing 7.7 Add new line between lines 1 and 2 Page 121, third and fourth sentences in A Somtimes you can access a Web site via different names, such as domain.com and www.domain.com. If you are authorized to access a certain restricted area of domain.com but you are redirected or follow a link to www.domain.com, you will be asked again to provide the username and password because your browser thinks it is a completely different Web site. Page 145, Table 9.1, PATH_INFO meaning Add a sentence to the end. Page 153, bullets under "Environment Variables" Add a bullet Page 158, code line in Web server setting 1: <Location /restricted> 2: order allow, deny 3: AuthType Basic Somtimes you can access a Web site via different names, such as example.com and www.example.com. If you are authorized to access a certain restricted area of example.com but you are redirected or follow a link to www.example.com, you will be asked again to provide the username and password because your browser thinks it is a completely different Web site. Take a look at the AcceptPathInfo directive included in later versions of Apache 2.0. AcceptPathInfo: Accept or reject requests containing trailing pathname information. #./changepass.pl /etc/webmin/ admin newpassword #./changepass.pl /etc/webmin/ admin newpassword Page 161, last two sentences above Figure 10.4 The Log Files section enables you to specify files for logging Web requests and server errors, as shown in Hour 6. The CGI section allows you to configure Apache to run CGI scripts, as explained in Hour 8, "Logging and Monitoring." The Log Files section enables you to specify files for logging Web requests and server errors, as shown in Hour 8. The CGI section allows you to configure Apache to run CGI scripts, as explained in Hour 6, "Logging and Monitoring."

Page 203, second sentence One of the protocols used for this purpose is DAV (Document Authoring and Versioning). Page 205, second sentence in paragraph above "The DAV Protocol" A new protocol based on HTTP was developed to address these shortcomings: Document Authoring and Versioning, also known as DAV or WebDAV. Page 207, third paragraph Finally, if your DAV server will be accessed via Windows Web folders, you need to add the following configuration file to work around some buggy Microsoft behavior: Page 215, sixth line of code in quiz answer #1 AuthUserFile/usr/local/apache2/conf/htusers Page 221, last sentence on the page A fully qualified domain name (FQDN) can be used instead of an IP address as the VirtualHost container name and the Listen directive binding if the domain name resolves in DNS to an IP address configured on the machine and Apache can bind to it. Page 234, second sentence under "Enable Proxy Support for Apache" The CONNECT option allows SSL connections to pass untouched via the proxy and is explained later in this hour. Page 274, URL next to "Thawte:" http://www.thawte.com/certs/server/request.html One of the protocols used for this purpose is DAV (Distributed Authoring and Versioning). A new protocol based on HTTP was developed to address these shortcomings: Distributed Authoring and Versioning, also known as DAV or WebDAV. Finally, if your DAV server will be accessed via Windows Web folders, you need to add the following configuration directive to work around some buggy Microsoft behavior: AuthUserFile /usr/local/apache2/conf/htusers A fully qualified domain name (FQDN) can be used instead of an IP address as the VirtualHost container name if the domain name resolves in DNS to an IP address configured on the machine and Apache can bind to it. The CONNECT option allows SSL connections to pass untouched via the proxy. http://www.thawte.com/ Page 277, delete third sentence that begins, "SSLLog and SSLLogLevel enable you to specify..."

Page 277, third paragraph, first sentence, The SSLPassprase directive can be used to avoid having to enter a pass phrase at startup by designating an external program that will be invoked to provide it. Page 279, Answer 1, first sentence You can use the SSLPassPhrase method to point to a program that will provide the pass phrase. Page 281, URL for ModSSL project http://www.openssl.org The SSLPassPhraseDialog directive can be used to avoid having to enter a pass phrase at startup by designating an external program that will be invoked to provide it. You can use the SSLPassPhraseDialog method to point to a program that will provide the pass phrase. http://www.modssl.org Page 290, last sentence of mod_userdir Delete the sentence Page 299, URL on last line of page http://httpd.apache.org/docs-2.0/mod/index by type.html Page 330, add text above "Hello World with mod_perl Page 331, line 10 of the code $r->puts("hello World, this is the ". _PACKAGE_. " application'); Pagd 357, add text above Listing 21.5 http://httpd.apache.org/docs-2.0/mod/ Installation instructions for mod_perl 2.0 will vary over time as the software evolves. Check the Apache Web site and http://www.apacheworld.org/ty24/ for the latest instructions. $r->puts("hello World, this is the ". _PACKAGE_. " application"); You need to add the following lines to httpd.conf: JkMount /sams-webapp/* ajp13 Alias /sams-webapp /usr/local/jakarta-tomcat-4.0.4/webapps/sams-webapp Page 365, add line to end of paragraph above Listing 21.9 You can find more information at http://apacheworld.org/ty24/ This errata sheet is intended to provide updated technical information. Spelling and grammar misprints are updated during the reprint process, but are not listed on this errata sheet.