• No results found

Chapter 24 Web Servers (PWS, IIS, Apache, Jigsaw) 805. A Web server communicating with several HTTP clients.

N/A
N/A
Protected

Academic year: 2021

Share "Chapter 24 Web Servers (PWS, IIS, Apache, Jigsaw) 805. A Web server communicating with several HTTP clients."

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.1

A Web server communicating with several HTTP clients.

(2)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Version

4.0

4.0

1.3.9

2.0.3

Company

Microsoft

Corporation

Microsoft

Corporation

Apache Group

World Wide Web

Consortium

Released

12/4/97

12/4/97

8/20/99

8/17/99

Platforms

Windows 95/98,

Windows NT

Windows NT

Server

(Intel/Alpha)

UNIX, Windows

NT,

experimen-tally supports

Windows 95/98.

Windows NT,

Win-dows 95/98, UNIX

(Solaris 2.x).

Brief

description

Supports up to 10

concurrent

connec-tions; no longer

supports FTP.

Latest release of

the most popular

Web server for

Windows NT.

The most popular

Web server

currently in use on

the Internet.

Java-based server

that provides a

blueprint for future

Web development.

Features

A great entry-level

Web server for

publishing your

own Web pages.

Updated versions of

IIS, Index Server,

Message Queue

Server (MSMQ)

and Transaction

Server (MTS).

High performance,

extremely reliable

Web server.

Administration

tools; completely

object-oriented

design; written

entirely in Java.

Price

Freeware. Packaged

with Microsoft IIS

in NT 4.0 Option

Pack, also included

in Windows 98.

Free download

(requires IE 4.01 or

later). A CD-ROM

version can be

purchased.

Freeware.

Freely available

under open-source

license.

(3)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.3

Windows NT 4.0 Option Pack

license agreement dialog.

(4)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.4

Microsoft Personal Web Server Setup

dialog.

(5)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.5

Select Network Component Type

dialog.

(6)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.6

Select Network Service

dialog.

(7)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.7

The PWS icon highlighted in the system tray of the Windows taskbar.

(8)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.8

Default Web site page for PWS.

(9)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.9

PWS documentation employing use of the ASP scripting engine and the

(10)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.10

Microsoft

IP Configuration

utility.

(11)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.11

Network

dialog displaying the computer name.

(12)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook. File Extension Default Interpreter

.exe, .com, .bat, .cmd

Cmd.exe

.idc

Httpodbc.dll

.asp, .asa

Asp.dll

(13)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.13

Personal Web Manager

dialog.

(14)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.14

Advanced

Options

area in the

Personal Web Manager

dialog.

(15)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.15

Setting permissions in

Personal Web Manager

.

(16)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

1

Datasource:NWIND

2

Template:Customers.htx

3

SQLStatement:SELECT * FROM [Customers]

4

Password:

5

Username:

(17)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

1

<!DOCTYPE html PUBLIC

"-//W3C//DTD HTML 4.0 Transitional//EN"

>

2

<HTML>

3

<HEAD>

4

<META HTTP-EQUIV =

"Content-Type"

5

CONTENT =

"text/html; charset = windows-1252"

>

6

<TITLE>Customers</TITLE>

7

</HEAD>

8

<BODY>

9

<TABLE BORDER =

1

BGCOLOR =

#ffffff

CELLSPACING =

0

RULES =

none

>

10

<FONT FACE =

"MS Sans Serif"

COLOR =

#000000

><CAPTION>

11

<B>Customers</B></CAPTION>

12

13

<THEAD>

14

<TR>

15

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

16

FACE =

"MS Sans Serif"

COLOR =

#000000

>CustomerID</FONT></TH>

17

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

18

FACE =

"MS Sans Serif"

COLOR =

#000000

>CompanyName</FONT></TH>

19

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

20

FACE =

"MS Sans Serif"

COLOR =

#000000

>ContactName</FONT></TH>

21

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

22

FACE =

"MS Sans Serif"

COLOR =

#000000

>ContactTitle</FONT></TH>

23

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

24

FACE =

"MS Sans Serif"

COLOR =

#000000

>Address</FONT></TH>

25

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

26

FACE =

"MS Sans Serif"

COLOR =

#000000

>City</FONT></TH>

27

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

28

FACE =

"MS Sans Serif"

COLOR =

#000000

>Region</FONT></TH>

29

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

30

FACE =

"MS Sans Serif"

COLOR =

#000000

>PostalCode</FONT></TH>

31

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

32

FACE =

"MS Sans Serif"

COLOR =

#000000

>Country</FONT></TH>

33

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

34

FACE =

"MS Sans Serif"

COLOR =

#000000

>Phone</FONT></TH>

35

<TH BGCOLOR =

#c0c0c0

BORDERCOLOR =

#000000

><FONT SIZE =

2

36

FACE =

"MS Sans Serif"

COLOR =

#000000

>Fax</FONT></TH>

37

38

</TR>

39

</THEAD>

40

<TBODY>

41

<%BeginDetail%>

42

<TR VALIGN =

TOP

>

43

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

FACE =

"MS Sans Serif"

44

COLOR =

#800000

><%CustomerID%><BR></FONT></TD>

45

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

46

FACE =

"MS Sans Serif"

COLOR =

#800000

><%CompanyName%><BR>

47

</FONT></TD>

48

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

49

FACE =

"MS Sans Serif"

COLOR =

#800000

><%ContactName%><BR>

50

</FONT></TD>

51

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

(18)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

54

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

55

FACE =

"MS Sans Serif"

COLOR =

#800000

><%Address%><BR>

56

</FONT></TD>

57

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

58

FACE =

"MS Sans Serif"

COLOR =

#800000

><%City%><BR>

59

</FONT></TD>

60

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

61

FACE =

"MS Sans Serif"

COLOR =

#800000

><%Region%><BR>

62

</FONT></TD>

63

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

64

FACE =

"MS Sans Serif"

COLOR =

#800000

><%PostalCode%><BR>

65

</FONT></TD>

66

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

67

FACE =

"MS Sans Serif"

COLOR =

#800000

><%Country%><BR>

68

</FONT></TD>

69

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

70

FACE =

"MS Sans Serif"

COLOR =

#800000

><%Phone%><BR>

71

</FONT></TD>

72

<TD BORDERCOLOR =

#808080

><FONT SIZE =

1

73

FACE =

"MS Sans Serif"

COLOR =

#800000

><%Fax%><BR>

74

</FONT></TD>

75

76

</TR>

77

<%EndDetail%>

78

</TBODY>

79

<TFOOT></TFOOT>

80

</TABLE>

81

</BODY>

82

</HTML>

(19)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.18

customers.idc

as requested and displayed in a Web browser.

(20)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.19

IIS setup

Warning

dialog.

(21)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.20

Starting the Apache Web Server as a console application.

(22)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.21

Default Web site page for Apache Web Server.

(23)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.22

Jigsaw batch installation process.

(24)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.23

Default Web site page for the Jigsaw Web server.

(25)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.24

JigAdmin

(Jigsaw Administration tool) authorization dialog.

(26)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.25

JigAdmin

general properties page.

(27)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook.

Fig. 24.26

JigAdmin

Web configuration page.

(28)

© Copyright 2000 by Prentice Hall. All Rights Reserved.

For use only by instructors in classes for which Java How to Program, Third Edition is the required textbook. Error Code Description

Bad Request 400

Error in request syntax.

Unauthorized 401

Request requires an Authorization: field, and the client did not

pro-vide one. This response is accompanied by a list of acceptable

authorization schemes use WWW-Authenticate response headers.

Error 401 can be part of a client/server dialogue to negotiate

encryp-tion and user-authenticaencryp-tion schemes.

Payment Required 402

The requested operation costs money, and the client did not specify

a valid

ChargeTo

field.

Forbidden 403

Request for forbidden resource denied.

Not found 404

Requested resource not found.

Internal Error 500

The server has encountered an internal error and cannot continue

processing the request.

Not implemented 501

Request acceptable but denied because server does not support this

transaction method.

References

Related documents