Docsity

Web Servers Explained, Slides of Information Technology

Partial preview of the text

Download Web Servers Explained and more Slides Information Technology in PDF only on Docsity!

FT228/3 Web Development Web Servers Introduction Wee Se ee Web Browse Server r I — fae Client Server A web server is specialised software that responds to client (l.e. web browser) requests Every web site requires a web server to process client requests and ‘serve up’ the pages Web servers used to service Internet, intranets and extranets Note that web server in this context is software. Server machine is also referred to as the web server. Common web system architecture Application User interface. The client interacts with the middle tier to make requests and to retrieve data from the - - information tier Client tier Controls the interactions between the application clients and application data. Enforces business rules. implements presentation logic. Web server typically supports this tier. Middle tier Maintains data for the application. - Data typically stores in a relational Information database management system (RDBMS) tier Hyper Text Transfer Protocol Request e.g. “Get me a webpage” “Post this data to the server” Web a. oak Web Resources: Browse Server Databases ee I @ Application = — ge Client Response Server e.g. “here’s the web page” Basic function of web server is to act as HTTP server Web servers communicate with clients using a Response-Request protocol: HTTP Client-Server model and HTTP * HTTP is the de facto standard for transferring World Wide Web documents « Usually to port 80 « HTTP messages (requests and responses) between client and server are human readable Http: Requests from client * Request - Get resource - Type of browser - Name of host - etc * First line is request-line. Contains the nature of the Request e.g. - GET: Get a file from the server - POST: Post data to the server - PUT: Store some resource Http: Requests from client: HTML Examples
Word to look up HTML code Indicates a get request for a form Not usually used for forms Sends any parameters in the query string as www.hostname?name=word& etc Http: Response from web server « Response - 200 = Status code = All’s well - Type of server - Other contents etc HTTP/1.1 200 OK Date: Thu, 22 July 1998 18:40:55 GMT Server: Apache 1.3.5 (Unix) PHP/3.0.6 Last-Modified: Mon, 19 July 1997 16:03:22 GMT Content-Type: text/html Content-Length: 12987 Accessing web servers Must know host name on which web server resides Protocol Remote web servers accessed using———— « URL: http://www.dtl.com/default.as * OR IP address http://207.60.134.230 aN Page name Local web servers (on same machine) accessed using machine name or localhost omain name web server functionality HTTP Server (at a minimum) But usually includes many other functions such as: * File Transfer Protocol (FTP) server Simple Mail Transfer Protocol (SMTP) server (for Email) Web development and publishing functionality Support for specific server side technologies e.g. JSP, SSIs Security features And more Leading web servers Server Vendor Comment Domino IBM Supports multiple operating systems. About $500 ONE SUN Cost about $1500. Supports webserver multiple operating systems. Sambar Freeware Free Zeus Zeus About $1,500 Plus hundreds more.... E.g. Blazix See http: //www.serverwatch.com/tutorials/article. php/ 1363221 Market Share for Web Servers Developer Apache Microsoft July 2005 47030635 13871645 1842812 608121 Percent 69.60 20.53 2.73 0.90 August 2005 48895205 14384006 1864788 580675 Percent 69.46 20.43 2.65 0.82 ‘Change “0.14 0.10 -0.08 0.08 Comparisons Server Performance Reliability Ease of Use Support us 9 9 8 8 Apache 10 10 6 9 Netscape 9 10 8 8 Sambar 8 10 10 2 ( ) Source; serverwatch,com Selecting a web server Various criteria Performance Reliability e.g. how many client requests per second can be processed? Load balancing? How robust is the web server? How liable to crash? How easily recovered? Ease of Use Support What support is provided by the vendor? How easy to set up , administer, learn?