Web Servers (IIS and Apache)

Slides:



Advertisements
Similar presentations
Welcome to Middleware Joseph Amrithraj
Advertisements

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.
 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 Development Application Web Servers.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
 2008 Pearson Education, Inc. All rights reserved Web Servers (IIS and Apache)
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.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
17 Web Servers (Apache and IIS)
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.
INTRODUCTION TO WEB DATABASE PROGRAMMING
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
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.
Chapter 1: Introduction to Web
 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.
 2006 Pearson Education, Inc. All rights reserved Web Programming.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 Web Servers (Chapter 21 – Pages( ) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System Architecture.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
 2008 Pearson Education, Inc. All rights reserved. Chapter 17 Web Servers (Apache and IIS) Internet & World Wide Web How to Program, 5/e.
Introduction and Principles Web Server Scripting.
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.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
Copyright © 2011 Pearson Addison-Wesley Web Servers and Projects Deployment Chapter 11 – Slide 1.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
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.
4.01 How Web Pages Work.
Web Technology Seminar
CGS 3066: Web Programming and Design Spring 2017
4.01 How Web Pages Work.
Introduction to Internet Programming (Web Based Application)
Understanding Web Server Programming
Web Programming Language
4.01 How Web Pages Work.
Distributed Control and Measurement via the Internet
IS1500: Introduction to Web Development
Technologies and Applications
JavaScript and Ajax (Internet Background)
Web Development Web Servers.
Warm Handshake with Websites, Servers and Web Servers:
CNIT 131 Internet Basics & Beginning HTML
E-commerce | WWW World Wide Web - Concepts
E-commerce | WWW World Wide Web - Concepts
Some bits on how it works
Web App vs Mobile App.
Files, folders, directories, URLs, and IP addresses
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
17 Web Servers (Apache and IIS)
Client side & Server side scripting
Web Page Concept and Design :
Chengyu Sun California State University, Los Angeles
17 Web Servers (Apache and IIS)
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Web Technologies Computing Science Thompson Rivers University
4.01 How Web Pages Work.
Information Retrieval and Web Design
4.01 How Web Pages Work.
Web Application Development Using PHP
Presentation transcript:

Web Servers (IIS and Apache) 21 Web Servers (IIS and Apache)

21.1 Introduction A web server responds to client requests A web server and a client communicate using the platform-independent Hypertext Transfer Protocol (HTTP)

21.2 HTTP Transactions The HTTP protocol allows clients and servers to interact and exchange information. HTTP uses URLs (Uniform Resource Locators) to identify data on the Internet. http:// indicates that the resource is to be obtained using the HTTP protocol.

21.2 HTTP Transactions (Cont.) A hostname is translated into an IP Translation is performed by a domain name system (DNS) server Virtual Directory: For security reasons the path normally specifies the location of a virtual directory. The server translates the virtual directory into a real location on the server.

21.2 HTTP Transactions (Cont.) HTTP method get indicates that the client wishes to obtain a resource from the server. HTTP status code 200 indicates success. Status code 404 informs the client that the web server could not locate the requested resource.

Fig. 21. 1 | Client interacting with web server Fig. 21.1 | Client interacting with web server. Step 1: The GET request.

Fig. 21. 2 | Client interacting with web server Fig. 21.2 | Client interacting with web server. Step 2: The HTTP response.

21.3 Multitier Application Architecture Web-based applications are multitier applications that divide functionality into separate tiers. The bottom tier maintains the application’s data. The middle tier implements business logic to control interactions between the client and data. Business rules dictate how clients can and cannot access application data, and how applications process data. The top tier is the application’s user interface. The client tier never directly interacts with the data tier.

Fig. 21.3 | Three-tier architecture.

21.4 Client-Side Scripting versus Server-Side Scripting Client-side scripting can be used to validate user input, to interact with the browser Client-side scripting does have limitations, such as browser dependency. Sensitive information, such as passwords or other personally identifiable data, should not be stored or validated on the client. Server-side scripting languages can access the server’s file directory structure.

Software Engineering Observation 21.2 Properly configured server-side script source code is not visible to the client; only XHTML and any client-side scripts are visible to the client.

21.5 Accessing Web Servers Localhost Local web servers can be accessed through your computer’s name or through the name Localhost a hostname that references the local machine and normally translates to the IP address 127.0.0.1 (also known as the loopback address).

21.6 Microsoft Internet Information Services (IIS) Microsoft Internet Information Services (IIS) is a web server. Installing IIS on a machine allows that computer to serve documents. To install IIS 5.1 on Windows XP, you may need your original operating-system disk.

Fig. 21.4 | Internet Information Services window of IIS 5.1.

Fig. 21. 9 | Internet Information (IIS) Services Manager window (IIS 7

21.7 Apache HTTP Server The Apache HTTP Server is currently the most popular web server. It is open source software that runs on UNIX, Linux, Mac OS X, Windows platforms.

Fig. 21. 11 | Apache Service Monitor Fig. 21.11 | Apache Service Monitor. (Courtesy of The Apache Software Foundation, <http://www.apache.org/>.)

21.8 Requesting Documents Static Web Pages The server sends XHTML documents to the client as static web pages. Dynamic Web Pages For other types such as PHP, Ruby on Rails, ASP.NET and JavaServer Faces, the appropriate scripting engine first generates XHTML content, then transmits it to the client over HTTP.

Fig. 21.12 | Requesting test.html.