Web Servers1-1 Web Servers Xingquan (Hill) Zhu

Slides:



Advertisements
Similar presentations
PHP syntax basics. Personal Home Page This is a Hypertext processor It works on the server side It demands a Web-server to be installed.
Advertisements

DT228/3 Web Development WWW and Client server model.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Server-Side vs. Client-Side Scripting Languages
Introduction to Web Database Processing
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Introduction to Web Interface Technology (CSE2030)
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.
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
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.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
PL-IV- Group A HTTP Request & Response Header
Web Client/Server Communication A290/A590, Fall /09/2014.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Linux Operations and Administration
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
Internet Vulnerabilities & Criminal Activities 1.2 – 9/12/2011 Structure of Internet Communications 1.2 – 9/12/2011 Structure of Internet Communications.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
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.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 1: Introduction to Web
FTP (File Transfer Protocol) & Telnet
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
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.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
Copyright (c) 2010, Dr. Kuanchin Chen1 The Client-Server Architecture of the WWW Dr. Kuanchin Chen.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
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.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Introduction and Principles Web Server Scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Week 11: Application Layer 1 Web and HTTP r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,… r Web page consists.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Web Server Administration Chapter 6 Configuring a Web Server.
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
National College of Science & Information Technology.
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.
Section 6.3 Server-side Scripting
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Warm Handshake with Websites, Servers and Web Servers:
Configuring Internet-related services
Web Page Concept and Design :
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Web Servers (IIS and Apache)
Web Application Development Using PHP
Presentation transcript:

Web Servers1-1 Web Servers Xingquan (Hill) Zhu

Web Servers1-2 Outline  Introduction  HTTP Request Type  Web Servers  Microsoft IIS  Apache Web Server  Client-Side Scripting vs Server-Side Scripting  Requesting Documents  PhP

Web Servers1-3 Introduction  Web server  Responds to client requests by providing resources  URL (Uniform Resource Locator)  scheme: object-address  Web server and client communicate with platform-independent Hypertext Transfer Protocol (HTTP) host name path name

Web Servers1-4 Introduction: HTTP HTTP: hypertext transfer protocol  Web’s application layer protocol  client/server model  client: browser that requests, receives, “displays” Web objects  server: Web server sends objects in response to requests PC running Explorer Server running Apache Web server Mac running Navigator HTTP request HTTP response

Web Servers1-5 Introduction: HTTP Request Initiate TCP Connection:  a small packet  Hand shaking Request File:  Send HTTP request Persistent vs non-psersistent Keep-alive on/off time to transmit file initiate TCP connection RTT request file RTT file received time GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr (extra carriage return, line feed)

Web Servers1-6 Introduction: HTTP Request Type  Request methods  Get Retrieve and send client form data to Web server Form data is to be encoded (by a browser) into a URL nG=Google+Searchhttp:// nG=Google+Search 1024 characters  post Post data to a server-side form handle –As data attachment Form data is to appear within a message body Secure

Web Servers1-7 Introduction: Web servers

Web Servers1-8 Microsoft IIS  FTP Site  Used for transferring large files across the Internet  HTTP Site  Used most frequently to request documents from Web servers  SMTP Virtual Server  Sends and receives electronic mail  Web Site Content Directory  Directory containing the documents that clients will view

Web Servers1-9 IIS  General home directory  C:\inetput\wwwroot\  Can be accessed via

Web Servers1-10 Virtual Directory

Web Servers1-11 Virtual Directory

Web Servers1-12 Virtual Directory

Web Servers1-13 Directory Properties

Web Servers1-14 Apache Server  Currently the most popular Web server  Stability  Efficiency  Portability  Open-source Apache Server Installation

Web Servers1-15

Web Servers1-16 Select “HTTP Server”

Web Servers1-17 Select “Download! From a mirror”

Web Servers1-18 Select Apache Server Win32 Binary and download  Save to your local disk Apache_ win32-x86-no_ssl.msi

Web Servers1-19 Apache Installation

Web Servers1-20 Apache installation

Web Servers1-21 Apache installation

Web Servers1-22 Apache installation

Web Servers1-23 Select apache directory

Web Servers1-24 Apache Directory

Web Servers1-25 Install

Web Servers1-26 Done

Web Servers1-27 Apache Configuration  Where is it?

Web Servers1-28 Configuration: httpd.conf

Web Servers1-29 Configuration: httpd.conf  Web address   /directory/start  run  cmd  ipconfig/all  The default directory  Document Root: H:/Program Files/Apache Group/Apache2/hotdocs   Aliases  Map a local directory to a web directory  Alias /home "h:/xqzhu/apache/homepage/“  Difference between /home and /home/  Access control  Order Allow and Deny Allow from host host … Deny from host host host … Order allow, denyvs order deny, allow –order allow,deny –allow from –deny from all

Web Servers1-30 Configuration: httpd.conf  Apply access control to directories Options Indexes Order allow, deny Allow from all Options Indexes Order allow, deny Deny from Allow from all Options: none, indexes Question? How to publish a web site content directory?

Web Servers1-31 Configuration: httpd.conf  UserDir:  The name of the directory that is appended onto a user's home directory if a ~user request is received  On Windows NT UserDir "My Documents/My Website"  DirectoryIndex  sets the file that Apache will serve if a directory is requested. Forbid listing a directory   DirectoryIndex index.html goog.html Question again? How to publish a web site content directory? Make sure that you reset the server each time you make the changes

Web Servers1-32 Service related parameters: httpd.conf  Listen a specific port  Listen 8080  The number of seconds before receives and sends time out  Timeout 300  Whether or not to allow persistent connections  KeepAlive On  KeepAliveTimeout 15

Web Servers1-33 Outline  Introduction  HTTP Request Type  Web Servers  Microsoft IIS  Apache Web Server  Client-Side Scripting vs Server-Side Scripting  Requesting Documents  PhP

Web Servers1-34 Client-Side Scripting vs Server- Side Scripting  Client-side scripts (most fancy effects are here, but browser dependent)  Validate user input  Reduce requests needed to be passed to server  Enhance Web pages with DHTML, ActiveX controls, and applets  JavaScript, VBScript, Java Applet  There are many things client-side scripts cannot do…  Server-side scripts (file and database access)  Executed on server  Generate custom response for clients  Wide range of programmatic capabilities  Functionality  PHP (Hypertext Preprocessor), ASP (Active Server Pages), JSP (Java Server Pages)

Web Servers1-35 Requesting Documents  Requesting five different documents  XHTML  ASP.NET  Perl  PHP  Python

Web Servers1-36 PHP  Server must install PHP  Must lead Apache to find the PHP, in case there is a need to interpret PHP script  Binding PhP with Apache Server  PHP Installation  Configuration

Web Servers1-37 PHP

Web Servers1-38 Download windows binaries PHP zip package

Web Servers1-39 Unzip the file to a local directory, say h:/php

Web Servers1-40 Change php.ini-recommended  Change php.ini-recommended to php.ini  php.ini is the configuration file of PHP

Web Servers1-41 Let Apache know where PHP is  Open httpd.conf (Apache configuration)  Find out “#PhP module”  Add following two lines below “# LoadModule”  LoadModule php5_module "h:/php/php5apache2.dll“  AddType application/x-httpd-php.php  Then you are basically good to go 

Web Servers1-42 Php.ini configuration  Show all errors  error_reporting = E_ALL  The separator used in PHP generated URLs  Default “&”  arg_separator.output = "&"  Separator(s) used by PHP to parse input URLs  Default “&”  arg_separator.input = ";&"  Whether to allow HTTP file upload  file_uploads = On  Temporary directory for HTTP file upload  upload_tmp_dir =“directory”  Numerous features related to PHP, will be addressed at later stage

Web Servers1-43 Pluto server  Directly put xxx.php file under any directory you like, Pluto has PhP already.  w6/myphp.php  How to program PhP?

Web Servers1-44 Outline  Introduction  HTTP Request Type  Web Servers  Microsoft IIS  Apache Web Server  Client-Side Scripting vs Server-Side Scripting  Requesting Documents  PhP