+ All Categories
Home > Documents > Ch1-5~1-6

Ch1-5~1-6

Date post: 06-Apr-2018
Category:
Upload: esmani84
View: 213 times
Download: 0 times
Share this document with a friend

of 20

Transcript
  • 8/3/2019 Ch1-5~1-6

    1/20

    Web TechnologiesWeb ClientWeb Servers

    Advisor: Rung-Hung Gau

    Speaker: Tsai-Fang Yeh

    Date: Mar. 14, 2007

  • 8/3/2019 Ch1-5~1-6

    2/20

    Outline

    Web Clients

    Basic Browser Functions-Mozilla

    URLs

    User-Controllable Features

    Web Servers

    Server Configuration

    Tomcat

  • 8/3/2019 Ch1-5~1-6

    3/20

    Web Clients

    A web client is software that accesses a webserver by sending an HTTP request message

    and processing the resulting HTTP response.

    In general, any web client that is designed todirectly support user access to web servers

    is known as a user agent

    Web browsers running on desktop or laptop

    computers are the most common form

    of web client software.

  • 8/3/2019 Ch1-5~1-6

    4/20

    Mozilla

    A primary reason for choosing to use

    Mozilla as a concrete browser example is

    that is runs on Linux, Windows, and

    Macintosh systems

    Also, the fact that it is open source means

    that if youre curious about details of how

    a feature operates, you have access

    to the source code itself.

  • 8/3/2019 Ch1-5~1-6

    5/20

    Title bar

    Menu bar

    Navigationtoolbar

    Client area

    Status bar

    online insecure

    location bar

  • 8/3/2019 Ch1-5~1-6

    6/20

    URLs

    http://www.example.org:56789/a/b/c.txt?t=win&s=chess#para5

    authority query

    port number fragment

    path

    authority: domain name or IP address

    path: is in fact concatenated by the server with a base file path in order

    to form an actual file path on the servers system

    query: was intended to pass search terms to a web server

    fragment: are used by browsers to scroll HTML documents

  • 8/3/2019 Ch1-5~1-6

    7/20

    User-Controllable Features

  • 8/3/2019 Ch1-5~1-6

    8/20

    Web Servers

    The primary feature of every web server is to accept HTTPrequests from web clients and return an appropriate resource inthe HTTP response

    NCSAs httpdweb server was starting point for severdevelopment . httpdwas used on a large fraction of the early

    web servers, but the NCSA discontinued development of theserver in the mid-1990s.

    When this happened, several individuals who were runninghttpd at their sites joined forces and began developing theirown updates to the open-source httpd software.

    Their updates were called patches, and this led to

    calling their work a patchy server, which soon

    became known as the Apache sever

  • 8/3/2019 Ch1-5~1-6

    9/20

    Web Servers

    Microsofts Internet Information Server (IIS) providesessentially all of the features found in Apache, although IIShave the drawback ofrunning only on Windows systems, whileApache runs on Windows, Linux, and Macintosh systems.

    Both servers can be configured to run a variety of types of

    programs (VBScript, Perl, PHP, Java) When running a Java program, both Apache and IIS servers

    are usually configured to run the program by using separatesoftware called servlet container.

    The servlet containerprovides the Java Virtual Machine

    that runs the Java program, and also providescommunication between the servlet

    and the Apache or IIS web server.

  • 8/3/2019 Ch1-5~1-6

    10/20

    Server Configuration

    Broadly speaking, server configuration can be broken into

    two areas:

    External communication

    Coyote, which provides the HTTP/1.1 communication Internal processing

    Catalina, which is the actual servlet container

  • 8/3/2019 Ch1-5~1-6

    11/20

    Tomcat

    Tomcat is a popular, free, and open-source servletcontainer developed and maintained by the Apachesoftware Foundation.

    In addition to running as a servlet container called

    on by web servers, Tomcat can also be run as astandalone web serverthat communicates directlywith web clients.

    The standalone Tomcat server can serve

    documents stored in the server machinesfile system and run programs written

    in non-Java languages.

  • 8/3/2019 Ch1-5~1-6

    12/20

  • 8/3/2019 Ch1-5~1-6

    13/20

  • 8/3/2019 Ch1-5~1-6

    14/20

  • 8/3/2019 Ch1-5~1-6

    15/20

  • 8/3/2019 Ch1-5~1-6

    16/20

  • 8/3/2019 Ch1-5~1-6

    17/20

  • 8/3/2019 Ch1-5~1-6

    18/20

  • 8/3/2019 Ch1-5~1-6

    19/20

  • 8/3/2019 Ch1-5~1-6

    20/20


Recommended