Chapter 22 Web Hosting and Internet Servers

Slides:



Advertisements
Similar presentations
CS 22: Enhanced Web Site Design - Week 8Slide 1 of 15 Enhanced Web Site Design Stanford University Continuing Studies CS 22 Mark Branom
Advertisements

Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
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.
Layer 7- Application Layer
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.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
Linux Operations and Administration
INTRODUCTION TO WEB DATABASE PROGRAMMING
Human-Computer Interface Course 5. ISPs and Internet connection.
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
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.
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.
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.
Tools for Web Applications. Overview of TCP/IP Link Layer Network Layer Transport Layer Application Layer.
 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.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
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.
1 Welcome to CSC 301 Web Programming Charles Frank.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
1 CS 4396 Computer Networks Lab TCP/IP Networking An Example.
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
The Web and Web Services Jim Graham NR 621 Spring 2009.
LinuxChix Apache. Serving Webpages The layer 7 protocol (HTTP) is what our browsers talk to get us the websites we can't seem to live without. HTTP is.
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
IT ELECTRONIC COMMERCE THEORY NOTES
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Web Server Design Week 7 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/24/10.
Web Technologies Lecture 1 The Internet and HTTP.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Linux Operations and Administration Chapter Eight Network Communications.
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.
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
Information Networks. Internet It is a global system of interconnected computer networks that link several billion devices worldwide. It is an international.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web.
Distributed Control and Measurement via the Internet
Chapter 13 TCP/IP Networking
WWW and HTTP King Fahd University of Petroleum & Minerals
Ch 22: Web Hosting and Internet Servers
HTTP – An overview.
Web Development Web Servers.
Warm Handshake with Websites, Servers and Web Servers:
Computing with C# and the .NET Framework
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv6 Hands-on pre-GDB IPv6 workshop 7th of June 2016 edoardo
Lecture 6: TCP/IP Networking By: Adal Alashban
Linux Network Configuration
Web Server Design Week 7 Old Dominion University
TCP/IP Networking An Example
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Multimedia and Networks
Chapter 1 Fundamentals.
Web Server Design Week 6 Old Dominion University
World Wide Web Uniform Resource Locator hostname [:port]/path
The HTTP Protocol COSC 2206 Internet Tools The HTTP Protocol
Module 12 Network Configuration
Web Servers (IIS and Apache)
Computer Networks Protocols
Web Server Design Week 6 Old Dominion University
Presentation transcript:

Chapter 22 Web Hosting and Internet Servers

Web Hosting Basics (1) HTTP Hyper-Text Transfer Protocol TCP-based protocol Used to format, transmit, and link documents of variety media types Text, picture, sound, animation, video, …

Web Hosting Basics (2) Client-server architecture Web Server: Answer HTTP request Web Client: Request certain page using URL

Web Hosting Basics (3) Static vs. Dynamic Pages

URL (1) Uniform Resource Locator Describe how to access an object shared on the Internet Protocol Hostname TCP/IP port Directory Filename 透過 網路, 藉由不同的通訊協定來存取 Internet 上所分享的東西

URL (2) URL Protocols Proto What it does Example http Accesses a remote file via HTTP http://www.csie.nctu.edu.tw https Accesses a remote file via HTTP/SSL https://www.csie.nctu.edu.tw ftp Accesses a remote file via FTP ftp://ftp.csie.nctu.edu.tw/ mailto Sends mail mailto:tytsai@csie.nctu.edu.tw news Accesses Usenet newsgroups news:tw.bbs.comp.hardware telnet Logs in to a remote computer telnet://bbs.csie.nctu.edu.tw file Access a local file file:///home/tytsai/.tcshrc

URL (3) Using “telnet” to web server tytsai@ccduty:~> telnet www.csie.nctu.edu.tw 80 Trying 140.113.209.63... Connected to www.csie.nctu.edu.tw. Escape character is '^]'. GET /note.html HTTP/1.0 HTTP/1.1 200 OK Date: Sat, 04 Dec 2004 04:39:22 GMT Server: Apache/1.3.31 (Unix) mod_ssl/2.8.18 OpenSSL/0.9.7d PHP/4.3.7 PHP/3.0.18 Last-Modified: Tue, 27 Jul 2004 04:58:25 GMT ETag: "10e2a57-3a5-4105e0f1" Accept-Ranges: bytes Content-Length: 933 Connection: close Content-Type: text/html <html> <title>最新消息!</title> … </html> Connection closed by foreign host.

CGI Common Gateway Interface A specification that allows an HTTP server to exchange information with other programs

Virtual Interface Idea Ex: 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: smtp.csie.nctu.edu.tw one NIC with two IP {tytsai@smtp}/etc> ifconfig fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 140.113.235.235 netmask 0xffffff00 broadcast 140.113.235.255 inet 140.113.235.211 netmask 0xffffffff broadcast 140.113.235.211 ether 00:03:47:24:6c:e2 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000

Virtual Interface Configuration – FreeBSD Using “ifconfig” command and “alias” option % ifconfig fxp0 inet 140.113.235.211 netmask 255.255.255.255 alias % ifconfig fxp0 inet 140.113.235.211 delete (when you want to delete it) Specify in /etc/rc.conf ifconfig_fxp0="inet 140.113.235.235 netmask 255.255.255.0" ifconfig_fxp0_alias0="inet 140.113.235.211 netmask 255.255.255.255" defaultrouter="140.113.235.254" hostname="smtp" …

Virtual Interface Configuration – Linux Using ifconfig command % ifconfig eth0:0 140.113.235.6 netmask 255.255.255.0 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=140.113.235.255 IPADDR=140.113.235.6 NETMASK=255.255.255.0 NETWORK=140.113.235.0 ONBOOT=yes

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 tytsai@ccsun3:/etc/inet> cat /etc/hostname.hme0 ccsun3 tytsai@ccsun3:/etc/inet> cat /etc/hostname.hme0:1 ccsun10 tytsai@ccsun3:/etc/inet> cat /etc/inet/hosts 127.0.0.1 localhost 140.113.209.103 ccsun3 140.113.209.110 ccsun10 tytsai@ccsun3:/etc/inet> ifconfig -a lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 140.113.209.103 netmask ffffff00 broadcast 140.113.209.255 hme0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 140.113.209.110 netmask ffffff00 broadcast 140.113.209.255