World Wide Web WeeSan Lee

Slides:



Advertisements
Similar presentations
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Advertisements

CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Web architecture Dr Jim Briggs Web architecture.
Web Services Nov 26, 2002 Topics HTTP Serving static content Serving dynamic content class27.ppt “The course that gives CMU its Zip!”
Chapter 22 Web Hosting and Internet Servers. Computer Center, CS, NCTU 2 Web Hosting Basics (1)  Three major techniques in WWW (World Wide Web) System.
HTTP Exercise 01. Three Internet Protocols IP TCP HTTP Routes messages thru “Inter-network “ 2-way Connection between programs on 2 computers So they.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July.
1 The HyperText Transfer Protocol: HTTP Nick Smith Stuart Alley Tara Tjaden.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
Web programming for project students Dr Jim Briggs.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
Lecture 4 Web browsers, servers and HTTP Boriana Koleva Room: C54
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 10: Basic Apache Configuration and Management Chapter 26: Apache (httpd): Setting Up a Web.
Human-Computer Interface Course 5. ISPs and Internet connection.
Web Architecture Dr. Frank McCown Intro to Web Science Harding University This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike.
Web Server Design Week 5 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/10/10.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
FTP (File Transfer Protocol) & Telnet
Internet and Intranet Fundamentals Class 2 Session A.
Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
Lectures and Practicals Mon 8-10 SC1222 TUE SC1222 Office: SC Website: mis.csit.sci.tsu.ac.th/kanida.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
Application Layer 2 Figures from Kurose and Ross
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
Copyright (c) 2010, Dr. Kuanchin Chen1 The Client-Server Architecture of the WWW Dr. Kuanchin Chen.
Introduction to Internet Programming (Web Based Application)
WWW, HTTP, GET, POST, Cookies Svetlin Nakov Telerik Corporation
 Three major techniques in WWW (World Wide Web) System › HTML › HTTP › URL  HTML (1) – H yper T ext M arkup L anguage › Providing a means to describe.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
1 Introductory material. This module illustrates the interactions of the protocols of the TCP/IP protocol suite with the help of an example. The example.
ELECTRONIC COMMERCE- Framework, Technologies and Applications © Tata McGraw-Hill 1 Electronic Commerce: Information Distribution and Messaging.
Chapter 1 © 2003 by Addison-Wesley, Inc. 1 Chapter 1 Fundamentals.
1 HTTP EECS 325/425, Fall 2005 September Chapter 2: Application layer r 2.1 Principles of network applications m app architectures m app requirements.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
CS2043 Internet Visual Prog. / Appl. An introduction to Internet visual programming and applications. Major topics include object-oriented concepts, graphical.
Form Data Encoding GET – URL encoded POST – URL encoded
1 itec 400 Apache Web Server George Vaughan Franklin University.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
Chapter 1 Fundamentals. Internet History Internet Protocols.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Web Technologies Lecture 1 The Internet and HTTP.
Web Server Administration Chapter 6 Configuring a Web Server.
JavaScript and Ajax (Internet Background) Week 1 Web site:
LURP Details. LURP Lab Details  1.Given a GET … call a proxy CGI script in the same way you would for a normal CGI request  2.This UDP perl.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
EEC-484/584 Computer Networks Lecture 4 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
WEB1P webarch1 Web architecture Dr Jim Briggs. WEB1P webarch2 What is the web? Distributed system Client-server system Characteristics of clients and.
Web Server Design Week 5 Old Dominion University Department of Computer Science CS 495/595 Spring 2012 Michael L. Nelson 02/07/12.
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
Website Design and Construction Services and Standards.
Lesson 1: HTML and the Web Instructor: Mrs. KIM Lang.
Web Server Administration Chapter 6 Configuring a Web Server.
Web Server Design Week 6 Old Dominion University Department of Computer Science CS 495/595 Spring 2006 Michael L. Nelson 2/13/06.
HTTP – An overview.
JavaScript and Ajax (Internet Background)
CNIT 131 Internet Basics & Beginning HTML
Chapter 22 Web Hosting and Internet Servers
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Presentation transcript:

World Wide Web WeeSan Lee

Roadmap Introduction HTTP URL HTML CGI Apache Server Installation Squid Cache Server Q&A

Introduction Invented by Tim Berners-Lee in 1989/1990 Client-server architecture Servers  Apache, Netscape Enterprise Server, MS IIS, etc Clients  GUI Mosaic, Netscape, Mozilla, Firefox, Opera, Konqueror, Epiphany, IE, Safari, etc  Text Link, wget, emacs, telnet, etc

HTTP Hypertext Transfer Protocol Listen on port 80 or http (/etc/services)  $ grep " 80/tcp" /etc/services http80/tcp www RFC2068 defines HTTP/1.0 RFC2616 defines HTTP/1.1 Built on top of TCP

HTTP (cont) $ telnet 80 Trying Connected to Escape character is '^]'. GET / HTTP/1.0 HTTP/ OK Date: Mon, 16 Jul :47:38 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Mon, 16 Jul :08:44 GMT ETag: "889f0f-d5-71bab00" Accept-Ranges: bytes Content-Length: 213 Connection: close Content-Type: text/html; charset=UTF-8 …

URL Uniform Resource Locator Eg.   http – protocol/application  – hostname  80 – port  ~weesan/ - directory  Index.html - filename

URL (cont) Other protocols  file file://etc/passwd  ftp ftp://ftp.slackware.com/pub/slackware/slackware-12.0/  https  mailto

HTML Hypertext Markup Language Eg.  A sample HTML  Me

CGI Common Gateway Interface A way to communicate with external programs and generate pages dynamically Example of external scripts/programs:  Perl, PHP, Python, Ruby, Bash, C/C++, Cobol, etc Servers support plugins for performance, eg.  libphp4.so  libphp5.so  libperl.so

Apache Server Installation $ yum install httpd Files are distributed all over the places  /etc/httpd/conf/httpd.conf  /usr/sbin/httpd  /usr/sbin/apachectl  /var/www/html/  /var/www/cgi-bin/  /var/log/httpd/access_log  /var/log/httpd/error_log

Apache Server Installation (cont) To start the httpd server  $ /etc/init.d/httpd start To restart the httpd server  $ /etc/init.d/httpd restart To stop the httpd server  $ /etc/init.d/httpd stop To start the httpd server on reboot  $ chkconfig --level 2345 httpd on

Squid Cache Server A free version spawned from Harvest Cache Project from USC, which became NetCache, and 8 months later, it was acquired by NetApp Caches objects locally  Saves bandwidth  Reduces latency Fast, not process forking for new connections Supports Hierarchy Caching Listen on port 3128

Squid Cache Server (cont) $ telnet cache.cs.ucr.edu 3128 Trying cache.cs.ucr.edu... Connected to cache.cs.ucr.edu. Escape character is '^]'. GET HTTP/1.0 Host: HTTP/ OK Date: Thu, 08 May :11:19 GMT Server: Apache/2.2.3 (CentOS) X-Powered-By: PHP/5.1.6 Content-Type: text/html; charset=UTF-8 X-Cache: MISS from cache.cs.ucr.edu Via: 1.0 cache.cs.ucr.edu:3128 (squid/2.6.STABLE14) Proxy-Connection: close …

Squid Cache Server (cont).com.edu.net GET HTTP/1.0http://

Squid Cache Server (cont) Accelerator Mode  Reverse Proxy  To make web server faster for static pages Transparent Caching  Uses iptables  Configuration-free from clients

Squid Cache Server (cont) To create swap directories  $ squid –z  Run only once!!! To run Squid Cache Server  $ RunCache To reload the configuration  $ squid -k reconfiguration To rotate the log files  $ squid -k rotate

Reference LAH  Ch 21: Web Hosting and Internet Servers Apache Web Server  Squid Cache Server 