Web Servers
Web Servers
Web Clients
A web client is an application that communicates with a web server, using Hypertext
Transfer Protocol (HTTP). Any web client that is designed to directly support user access to
web servers is known as a user agent. Browser is the most commonly used web client. The
most common interface to the World Wide Web is a browser, such as Mosaic, Netscape
Navigator, or Internet Explorer.
Functions of browser:
The primary function of a web browser is to render HTML, the code used to design or
mark up webpages. Each time a browser loads a web page, it processes the HTML, which
may include text, links, and references to images and other items, such as cascading style
sheets and JavaScript functions. The browser processes these items, then renders them in the
browser window.
Parts of browser:
Each webpage has an address. This is indicated in the Address Bar. Most webpages
will have titles. The actual webpage itself is displayed in the Main Webpage Window. You
can reload a page by hitting the "Refresh" button. This will update it to the latest version. If a
webpage takes a long time to load you can stop loading it by hitting the "Stop" button.
This document can be a web page, image, audio, video or anything else present on
the web.
URL Types
There are two forms of URL as listed below:
AbsoluteURL:
Absolute URL is a complete address of a resource on the web. This completed
address comprises of protocol used, server name, path name and file name.
Here http is the protocol, abc.com is the server name and index.htm is the file
name.
The protocol part tells the web browser how to handle the file. Other protocols
also that can be used to create URL are: FTP, https, Gophe, mailto, news
Relative URL
Relative URL is a partial address of a webpage. Unlike absolute URL, the
protocol and server part are omitted from relative URL. Relative URLs are used
for internal links i.e. to create links to file that are part of same website as the
WebPages on which you are placing the link.
Web Servers
The computer that supplies files or services to the requesting computer over the
internet is called as a web server.
The request to the web pages is sent by the browser to the server.The server will
transfer the requested page to the computer over the internet.
Following the HTTP protocol, the browser sends a GET request to the server, asking
for the filehttp://www.abc.com/web-server.htm.The server machine transfers the HTML
content to the browser.The browser reads the HTML tags and formats the page onto the
screen.In general, all of the machines on the Internet can be categorized as two types: servers
and clients.The machines that provide services (like Web servers or FTP servers) to other
machines are servers.The machines that are used to connect to those services are clients.It is
possible and common for a machine to be both a server and a client.
A server machine may provide one or more services on the internet. For example, a
server machine might have software running on it that allows it to act as a Web server, an e-
mail server and an FTP server. Clients that connect to a server machine do so with a specific
intent, so clients direct their requests to specific software running on the overall server
machine. The web server contains log records that store information about server activity.
Access log file contains information about every HTTP requests processes by the
server.Message log file contains a variety of debugging and other information generated by
the web applications and the web server.The standard input, output and error streams are also
logged.
All the web sites reside on the web server. The web server is a computer with high
configuration.
Web sites can contain text files, images, Web servers are hardware or software unit.
videos and audios.
Logging
Web log file is log file automatically created and maintained by a web server. Every
hit to the Web site, including each view of a HTML document, image or other object, is
logged. The raw web log file format is essentially one line of text for each hit to the web site.
This contains information about who was visiting the site, where they came from, and exactly
what they were doing on the web site. The following are the key fields:
Directory- Directory where log file will be written
Pattern Information- to be written to the log
Prefix- String that will be used to begin log filename
Resolve Hosts -Whether IP addresses (False value) or host names (True value)
should be written to thelog file
Rotatable -Whether or not date should be added to file name and file should be
automatically rotatedeach day
Suffix- String that will be used to end log