Web Server Manual

How to Design Programs: An Introduction to Programming and Computing

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Web Server Manual Mike Burns (netgeek@speakeasy.net) Greg Pettyjohn (gregp@ccs.neu.edu) Jay McCarthy (jay.mccarthy@gmail.com) December 28, 2007 Copyright notice Copyright c 1996-2007 PLT Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Library General Public License, Version 2 published by the Free Software Foundation. A copy of the license is included in the appendix entitled License. Contents 1 Quick Start 1 1.1 Quick Start on Unix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 I Administration 2 2 Directory Structure 3 3 Configuration 4 3.1 Named Virtual Hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.2 The Configuration Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.2.1 Managing Virtual Hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.3 Configuration File Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3.3.1 Host Table Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4 Passwords 9 5 Starting the Server 10 6 Monitoring the Server 11 II Programming 12 7 Before You Begin 13 7.1 Reloading the Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 7.2 Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 8 Static Content 14 9 Writing Servlets 15 i CONTENTS CONTENTS 9.1 Module-Based Servlets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 10 Servlet Library 17 10.1 Data Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 10.1.1 Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 10.1.2 Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 10.1.3 Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 10.2 Core Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 10.3 Helpful Servlet Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 10.4 Example Multiplication Servlet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 10.5 Example Math Test Servlet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 10.6 Servlet Development Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 11 Semi-Internal Functions 25 11.1 Starting the Server from a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 11.2 Constructing Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25...
View Full Document

Page1 / 36

Web Server Manual - Web Server Manual Mike Burns...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online