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.

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

Chapter 22 Web Hosting. Computer Center, CS, NCTU 2 Web Hosting – Basics (1)  Three major techniques in WWW (World Wide Web) System HTML HTTP URL  HTML.
The Internet Useful Definitions and Concepts About the Internet.
Layer 7- Application Layer
HTTP Presented By: Holly Mortinson Amy Drout Kyle Balmer & Matt Conklin.
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.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
1 The HyperText Transfer Protocol: HTTP Nick Smith Stuart Alley Tara Tjaden.
World Wide Web WeeSan Lee
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
Linux Operations and Administration
Chapter 1 Internet & Web Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D. 1.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Web. Computer Center, CS, NCTU 2 Outline  Web hosting Basics Client-Server architecture HTTP protocol Static vs. dynamic pages Virtual hosts  Proxy.
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.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
FTP (File Transfer Protocol) & Telnet
The Internet Writer’s Handbook 2/e Introduction to World Wide Web Terms Writing for the Web.
Lesson 2 — The Internet and the World Wide Web
CSCI-235 Micro-Computer Applications The Internet.
1 Web Developer Foundations: Using XHTML Chapter 1 Key Concepts.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
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
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Postacademic Interuniversity Course in Information Technology – Module C1p1 Contents Data Communications Applications –File & print serving –Mail –Domain.
How Web Servers and the Internet Work by by: Marshall Brainby: Marshall Brain
Introduction to Computers Section 8A. home How the Internet Works Anyone with access to the Internet can exchange text, data files, and programs with.
 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.
How did the internet develop?. What is Internet? The internet is a network of computers linking many different types of computers all over the world.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
1 Web Development & Design Foundations with XHTML Chapter 1 Key Concepts.
UNESCO ICTLIP Module 1. Lesson 61 Introduction to Information and Communication Technologies Lesson 6. What is the Internet?
1 Chinese Information Processing : Using Computers to Teach and Learn Chinese Week 6 and 7: Creating and maintaining web pages - html and ftp.
1 Welcome to CSC 301 Web Programming Charles Frank.
Chapter 1 © 2003 by Addison-Wesley, Inc. 1 Chapter 1 Fundamentals.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 1 Key Concepts 1.
The Web and Web Services Jim Graham NR 621 Spring 2009.
Internet Architecture and Governance
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Web Design. What is the Internet? A worldwide collection of computer networks that links millions of computers by – Businesses (.com.net) – the government.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Newsgroup World Wide Web (WWW) Conservation Over the Internet e.g.ICQ File Transfer Protocol (FTP) Includes 6 main services: Electronic Mail Remote.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Introduction to the World Wide Web & Internet CIS 101.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
A BRIEF HISTORY OF THE INTERNET, WEB, AND HTML. Internet vs. World Wide Web What is The Internet? The Internet is a massive network of networks, a networking.
Web Server Design Week 6 Old Dominion University Department of Computer Science CS 495/595 Spring 2006 Michael L. Nelson 2/13/06.
Web Development & Design Foundations with XHTML Chapter 1 Key Concepts 1.
Web.
Distributed Control and Measurement via the Internet
Instructor Materials Chapter 5 Providing Network Services
Chapter 22 Web Hosting and Internet Servers
Web Page Concept and Design :
Web Servers (IIS and Apache)
Computer Networks Protocols
Presentation transcript:

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 HTML HTTP URL  HTML (1) – HyperText Markup Language Providing a means to describe the structure of text-based information in a document. The original HTML is created by Tim Berners-Lee. Published in 1993 by the IETF as a formal "application" of SGML (with an SGML Document Type Definition defining the grammar). The HTML specifications have been maintained by the World Wide Web Consortium (W3C). 

Computer Center, CS, NCTU 3 Web Hosting Basics (2)  HTML (2) Mark-up the text and define presentation effect by HTML Tags.... Normal text Bold text....

Computer Center, CS, NCTU 4 Web Hosting Basics (3)  HTTP – Hyper-Text Transfer Protocol A TCP-based protocol Communication method between client and server, both browsers and web servers have to follow this standard. Originally designed to transmit HTML pages. Now it is used to format, transmit, and link documents of variety media types  Text, picture, sound, animation, video, … HTTPS – secured version.

Computer Center, CS, NCTU 5 Web Hosting Basics (4)  URL – Uniform Resource Locator Describe how to access an object shared on the Internet Format  Protocol :// [ [ username [ :password ] hostname [ :port ] ] [ /directory ] [ /filename ] ex:   ftp://ftp.isu.edu.tw/  telnet://ptt.cc/

Computer Center, CS, NCTU 6 Web Hosting Basics (5)  URL Protocols ProtoWhat it doesExample httpAccesses a remote file via HTTP httpsAccesses a remote file via HTTP/SSL ftpAccesses a remote file via FTP ftp://ftp.csie.nctu.edu.tw/ mailtoSends mail newsAccesses Usenet newsgroups news:tw.bbs.comp.hardware telnetLogs in to a remote computer telnet://bbs.csie.nctu.edu.tw fileAccess a local file file:///home/chwong/.tcshrc

Computer Center, CS, NCTU 7 Web Hosting Basics (6)  Using “ telnet ” to web server chbsd [/home/chwong] -chwong- telnet 80 Trying Connected to Escape character is '^]'. GET / HTTP/1.0 HTTP/ OK Date: Wed, 27 Dec :46:53 GMT Server: Apache Last-Modified: Wed, 25 Jan :31:34 GMT ETag: " aa-b5eb580" Accept-Ranges: bytes Content-Length: 170 Content-Type: text/html X-Cache: MISS from cswproxy.cs.nctu.edu.tw Via: 1.0 cswproxy.cs.nctu.edu.tw:80 (squid/2.6.STABLE3) Connection: close NCTU -- CS Connection closed by foreign host.

Computer Center, CS, NCTU 8 Web Hosting Basics (7)  Client-server architecture Web Server: Answer HTTP request Web Client: Request certain page using URL Client Browser Web Server 2. 以 HTTP 協定送出 Request 4. 以 HTTP 協定回覆 Response 1. 以 URL 描述索取的資 源位置向 Server 發送要求 3. 從 URL 描述的位置將 HTML 文件取出並回覆給 Client 5. 接收到 HTML 後由 Browser 解析後根據 HTML 描述定義將 資料呈現出來

Computer Center, CS, NCTU 9 Web Hosting Basics (8)  Static vs. Dynamic Pages

Computer Center, CS, NCTU 10 Web Hosting Basics (9)  Common Gateway Interface A specification that allows an HTTP server to exchange information with other programs

Virtual Interface

Computer Center, CS, NCTU 12 Virtual Interface  Idea Let single machine responds to more IP addresses than it has physical network interfaces Each of the virtual network interface can be associated with different domain name  Ex: One NIC with two IP sabsd [/home/chwong] -chwong- ifconfig sk0: flags=8843 mtu 1500 options=b inet netmask 0xffffff00 broadcast inet netmask 0xffffffff broadcast ether 00:11:d8:06:1e:81 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu inet netmask 0xff000000

Computer Center, CS, NCTU 13 Virtual Interface Configuration – FreeBSD  Using “ ifconfig ” command and “ alias ” option % ifconfig sk0 inet netmask alias % ifconfig sk0 inet delete (when you want to delete it)  Specify in /etc/rc.conf ifconfig_sk0="inet netmask " ifconfig_sk0_alias0="inet netmask " defaultrouter=" " hostname=“sabsd" …

Computer Center, CS, NCTU 14 Virtual Interface Configuration – Linux  Using ifconfig command % ifconfig eth0: netmask up  Add file under /etc/sysconfig/network-scripts/ Original IP: /etc/sysconfig/network-scripts/ifcfg-eth0 Add /etc/sysconfig/network-scripts/ifcfg-eth0:0 DEVICE=eth0:0 BOOTPROTO=static BROADCAST= IPADDR= NETMASK= NETWORK= ONBOOT=yes

Computer Center, CS, NCTU 15 Virtual Interface Configuration – Solaris  Edit /etc/hostname.interface:1 and /etc/inet/hosts  Ex: /etc/hostname.hme0 Edit /etc/hostname.hme0:1 and /etc/inet/hosts ccsun3 [/u/dcp/94/ ] -chwong- cat /etc/hostname.hme0 ccsun3 ccsun3 [/u/dcp/94/ ] -chwong- cat /etc/hostname.hme0:1 ccsun10 ccsun3 [/u/dcp/94/ ] -chwong- cat /etc/inet/hosts localhost ccsun ccsun10 ccsun3 [/u/dcp/94/ ] -chwong- ifconfig -a lo0: flags= mtu 8232 index 1 inet netmask ff hme0: flags= mtu 1500 index 2 inet netmask ffffff00 broadcast hme0:1: flags= mtu 1500 index 2 inet netmask ffffff00 broadcast