SlideShare une entreprise Scribd logo
1  sur  24
1
Web Servers
• How do our requests
for resources on the
Internet get handled?
• Can they be located
anywhere? Global?
2
Web Servers
• Looking at ….
– Introduction to web servers
– HTTP request types
– 3-tier system architecture
– Accessing a web server (local and remote)
– Web server examples
• Apache
• Tomcat
• IIS
• PWS
3
What is a web server?
• Web server
– Specialized software that responds to client
requests by providing resources (web pages,
documents, etc..)
– Based on the client/server model
– When users enter URL into Web browsers, they
request specific documents from Web server
– Maps URL to file on server and returns requested
document to client
– Communicates with client using HTTP
• Protocol for transferring requests and files over the
Internet
4
HTTP Request Types
• Also known as request methods
• Most popular are get and post
– Retrieve and send client form data to Web server
– get request
• Sends form content as part of URL
• Retrieves appropriate resource from Web server
• Limits query to 1024 characters
– post request
• Updates contents of Web server (posting new messages to
forum)
• Has no limit for length of query
• Not part of URL and cannot be seen by user
5
HTTP Request Types
• get and post requests are sent to a server-
side form handler
• Client browsers cache (save on disk) Web
pages
– Allows for quick reloading
– Cache responses to get request
– Do not cache responses to post request
6
System Architecture
• A web server forms part of a multi-tier
application
– Divide functionality into separate tiers
• Logical groupings of functionality
• Can reside on same computer or on different
computers
• What does a 3-tier architecture look like?
– let’s have a look
7
System Architecture
ApplicationMiddle tier
Information tier
Client tier
Database
8
System Architecture
• Client tier
– Referred to as the top tier
– Application’s user interface
– Users interact with application through user
interface
– Interacts with middle tier to make requests and
to retrieve data from information tier
– Displays data to user
9
System Architecture
• Information tier
– Referred to as data tier or bottom tier
– Maintains data for application
– Stores data in relational database management
system
• Middle tier
– Implements business logic and presentation logic
– Controls interactions between application clients
and application data
– Acts as intermediary between data in information
tier and application clients
10
System Architecture
• Middle tier, cont.
– Controller logic
• Processes client requests from top tier
• Retrieves data from database
– Presentation logic
• Processes data from information tier
• Presents content to client
– Business logic
• Enforces business rules
– Dictates how clients can access application data and how
applications process data
• Ensures data validity before updating database
11
Accessing Web Server
• Requesting documents
– Must know machine name on which Web server
resides
– Through local Web servers or remote Web servers
– Through domain name or Internet Protocol (IP)
address
• Local Web server
– Resides on users’ machines
– Requests documents in two ways
• Machine name
• localhost
– Host name that references local machine
12
Accessing Web Server
• Remote Web server
– Resides on different machines
– Accessing resources on remote web server
requires
• Domain name
– Represents group of hosts on Internet
– Combines with how name (www) and top-level domain to from
fully qualified host name
• Fully qualified host name
– Provides user friendly way to identify site on Internet
• IP address
– Unique address for locating computers on Internet
• DNS (see notes)
13
Examples of Web Servers
• Apache (Apache group)
• Tomcat (Apache group)
• IIS (Microsoft Internet Information
Services)
• PWS (Microsoft Personal Web Server)
14
Apache web server
• Apache
– Maintained by Apache Software Foundation
– Currently most popular Web server
• Stable
• Efficient
• Portable
• (got it’s name from the original developers
who called it ‘a patchy server’)
15
Apache web server
• Open source
– Freely distributed on the Internet
– Huge amount of end-user support
– Has earned the reputation of being one of the
most reliable web server available
• Uses server modules to add functionality to
the core HTTP server
– i.e. extra services that it can provide (e.g.
security authentication)
16
Apache web server
• To launch Apache, successively select
– Start, Programs, Apache httpd Server, Control
Apache Server and Start
17
Tomcat web server
• Tomcat
– Similar to Apache and also maintained by
Apache Software Foundation
– Fast becoming a popular Web server
– Built in Servlet container (engine)
– Requires no add-ons to support Servlets
18
Tomcat web server
• To launch Tomcat, successively select
– Start, Programs, Apache Tomcat 4.x and Start
Tomcat
19
Internet Information Services
(IIS) web server
• Developed by Microsoft
• IIS 5.0
– Enterprise-level Web server
– Included with Windows 2000
– Allows computer to serve documents
• Uses an Internet Services Manager to
administrate
– see diagram
20
Internet Information Services
(IIS) web server
Internet Services Manager dialog.
21
Personal Web Server (PWS)
• PWS developed by Microsoft
• PWS
– Scaled-down version of IIS
– Intended for personal computers (PC)
– Ideal for educational institutions, small
businesses and individuals
– Does not require PC to be used exclusively as
Web server
– A Personal Web Manager is used to
administrate it
22
Personal Web Server
Personal Web Manager dialog.
23
References
• Check out
– http://www.apache.org
• Apache and Tomcat documentation
• Apache and Tomcat are free to download and install
– http://www.microsoft.com
• IIS and PWS documentation
24
Summary
• We have looked at:
– Introduction to web servers
– HTTP request types
– 3-tier system architecture
– Accessing a web server (local and remote)
– Web server examples

Contenu connexe

Tendances

Tendances (20)

Web Server - Internet Applications
Web Server - Internet ApplicationsWeb Server - Internet Applications
Web Server - Internet Applications
 
Apache web service
Apache web serviceApache web service
Apache web service
 
Apache web server
Apache web serverApache web server
Apache web server
 
HTTP Request and Response Structure
HTTP Request and Response StructureHTTP Request and Response Structure
HTTP Request and Response Structure
 
Apache web server
Apache web serverApache web server
Apache web server
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Web servers
Web serversWeb servers
Web servers
 
world wide web
world wide webworld wide web
world wide web
 
Http
HttpHttp
Http
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side Programming
 
Ppt of web development
Ppt of web developmentPpt of web development
Ppt of web development
 
What is Server? (Web Server vs Application Server)
What is Server? (Web Server vs Application Server)What is Server? (Web Server vs Application Server)
What is Server? (Web Server vs Application Server)
 
Http Protocol
Http ProtocolHttp Protocol
Http Protocol
 
PHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerPHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP Server
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
 
Cookies & Session
Cookies & SessionCookies & Session
Cookies & Session
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
Web services SOAP
Web services SOAPWeb services SOAP
Web services SOAP
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Internet basic
Internet basicInternet basic
Internet basic
 

En vedette

5 introduction to internet
5 introduction to internet5 introduction to internet
5 introduction to internetVedpal Yadav
 
Servers & Web Hosting
Servers & Web HostingServers & Web Hosting
Servers & Web HostingReza San
 
Internet applications
Internet applicationsInternet applications
Internet applicationsNur Azlina
 
Presentation (PowerPoint File)
Presentation (PowerPoint File)Presentation (PowerPoint File)
Presentation (PowerPoint File)webhostingguy
 
Web Servers - How They Work
Web Servers -  How They WorkWeb Servers -  How They Work
Web Servers - How They WorkBrian Gallagher
 
Semantic Web Servers
Semantic Web ServersSemantic Web Servers
Semantic Web Serverswebhostingguy
 
What Happens When You Own Google.com For A Minute?
 What Happens When You Own Google.com For A Minute? What Happens When You Own Google.com For A Minute?
What Happens When You Own Google.com For A Minute?Bhoomi Patel
 
Type "Google.com" into the Browser and Hit Enter: What Happens Next?
Type "Google.com" into the Browser and Hit Enter: What Happens Next?Type "Google.com" into the Browser and Hit Enter: What Happens Next?
Type "Google.com" into the Browser and Hit Enter: What Happens Next?Graeme Mathieson
 
ArcReady - Scalable And Usable Web Applications
ArcReady - Scalable And Usable Web ApplicationsArcReady - Scalable And Usable Web Applications
ArcReady - Scalable And Usable Web ApplicationsMicrosoft ArcReady
 
Web Servers: Architecture and Security
Web Servers: Architecture and SecurityWeb Servers: Architecture and Security
Web Servers: Architecture and Securitygeorge.james
 
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogicHTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogicOracle
 

En vedette (20)

5 introduction to internet
5 introduction to internet5 introduction to internet
5 introduction to internet
 
Servers & Web Hosting
Servers & Web HostingServers & Web Hosting
Servers & Web Hosting
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
Internet applications
Internet applicationsInternet applications
Internet applications
 
Presentation (PowerPoint File)
Presentation (PowerPoint File)Presentation (PowerPoint File)
Presentation (PowerPoint File)
 
Web Servers - How They Work
Web Servers -  How They WorkWeb Servers -  How They Work
Web Servers - How They Work
 
Semantic Web Servers
Semantic Web ServersSemantic Web Servers
Semantic Web Servers
 
Download It
Download ItDownload It
Download It
 
Web servers
Web serversWeb servers
Web servers
 
What Happens When You Own Google.com For A Minute?
 What Happens When You Own Google.com For A Minute? What Happens When You Own Google.com For A Minute?
What Happens When You Own Google.com For A Minute?
 
Understanding
Understanding Understanding
Understanding
 
Web Server Primer
Web Server PrimerWeb Server Primer
Web Server Primer
 
Web servers
Web serversWeb servers
Web servers
 
Chrome OS user guide
Chrome OS user guideChrome OS user guide
Chrome OS user guide
 
Type "Google.com" into the Browser and Hit Enter: What Happens Next?
Type "Google.com" into the Browser and Hit Enter: What Happens Next?Type "Google.com" into the Browser and Hit Enter: What Happens Next?
Type "Google.com" into the Browser and Hit Enter: What Happens Next?
 
ArcReady - Scalable And Usable Web Applications
ArcReady - Scalable And Usable Web ApplicationsArcReady - Scalable And Usable Web Applications
ArcReady - Scalable And Usable Web Applications
 
Web Servers: Architecture and Security
Web Servers: Architecture and SecurityWeb Servers: Architecture and Security
Web Servers: Architecture and Security
 
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogicHTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
 
Basic computer class_3
Basic computer class_3Basic computer class_3
Basic computer class_3
 
Web Servers
Web ServersWeb Servers
Web Servers
 

Similaire à Web servers (l6)

web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt20521742
 
SERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIES
SERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIESSERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIES
SERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIEScricketarmy3218
 
Introduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptxIntroduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptxhishamousl
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETSharePointKE
 
SharePoint Saturday The Conference 2011 - SP2010 Performance
SharePoint Saturday The Conference 2011 - SP2010 PerformanceSharePoint Saturday The Conference 2011 - SP2010 Performance
SharePoint Saturday The Conference 2011 - SP2010 PerformanceBrian Culver
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.pptMohammed Ilyas
 
Add a web server
Add a web serverAdd a web server
Add a web serverAgCharu
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesSam Bowne
 
CNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesCNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesSam Bowne
 
SharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 PerformanceSharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 PerformanceBrian Culver
 
05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver05.m3 cms list-ofwebserver
05.m3 cms list-ofwebservertarensi
 
Web Database
Web DatabaseWeb Database
Web Databaseidroos7
 

Similaire à Web servers (l6) (20)

web_server_browser.ppt
web_server_browser.pptweb_server_browser.ppt
web_server_browser.ppt
 
SharePoint 2013 - What's New
SharePoint 2013 - What's NewSharePoint 2013 - What's New
SharePoint 2013 - What's New
 
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
 
SERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIES
SERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIESSERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIES
SERVERS BASSIC INTRIDUCTION ,TYPES AND THEIR FUNCTIONALITIES
 
Introduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptxIntroduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptx
 
Ch-1_.ppt
Ch-1_.pptCh-1_.ppt
Ch-1_.ppt
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
SharePoint Saturday The Conference 2011 - SP2010 Performance
SharePoint Saturday The Conference 2011 - SP2010 PerformanceSharePoint Saturday The Conference 2011 - SP2010 Performance
SharePoint Saturday The Conference 2011 - SP2010 Performance
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.ppt
 
Add a web server
Add a web serverAdd a web server
Add a web server
 
Unit v
Unit v Unit v
Unit v
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application Technologies
 
CNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesCNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application Technologies
 
SharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 PerformanceSharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 Performance
 
05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver05.m3 cms list-ofwebserver
05.m3 cms list-ofwebserver
 
Web Database
Web DatabaseWeb Database
Web Database
 
L11 Application Architecture
L11 Application ArchitectureL11 Application Architecture
L11 Application Architecture
 
Web Browsers.pptx
Web Browsers.pptxWeb Browsers.pptx
Web Browsers.pptx
 
Windows 8 Metro apps and the outside world
Windows 8 Metro apps and the outside worldWindows 8 Metro apps and the outside world
Windows 8 Metro apps and the outside world
 
L19 Application Architecture
L19 Application ArchitectureL19 Application Architecture
L19 Application Architecture
 

Web servers (l6)

  • 1. 1 Web Servers • How do our requests for resources on the Internet get handled? • Can they be located anywhere? Global?
  • 2. 2 Web Servers • Looking at …. – Introduction to web servers – HTTP request types – 3-tier system architecture – Accessing a web server (local and remote) – Web server examples • Apache • Tomcat • IIS • PWS
  • 3. 3 What is a web server? • Web server – Specialized software that responds to client requests by providing resources (web pages, documents, etc..) – Based on the client/server model – When users enter URL into Web browsers, they request specific documents from Web server – Maps URL to file on server and returns requested document to client – Communicates with client using HTTP • Protocol for transferring requests and files over the Internet
  • 4. 4 HTTP Request Types • Also known as request methods • Most popular are get and post – Retrieve and send client form data to Web server – get request • Sends form content as part of URL • Retrieves appropriate resource from Web server • Limits query to 1024 characters – post request • Updates contents of Web server (posting new messages to forum) • Has no limit for length of query • Not part of URL and cannot be seen by user
  • 5. 5 HTTP Request Types • get and post requests are sent to a server- side form handler • Client browsers cache (save on disk) Web pages – Allows for quick reloading – Cache responses to get request – Do not cache responses to post request
  • 6. 6 System Architecture • A web server forms part of a multi-tier application – Divide functionality into separate tiers • Logical groupings of functionality • Can reside on same computer or on different computers • What does a 3-tier architecture look like? – let’s have a look
  • 8. 8 System Architecture • Client tier – Referred to as the top tier – Application’s user interface – Users interact with application through user interface – Interacts with middle tier to make requests and to retrieve data from information tier – Displays data to user
  • 9. 9 System Architecture • Information tier – Referred to as data tier or bottom tier – Maintains data for application – Stores data in relational database management system • Middle tier – Implements business logic and presentation logic – Controls interactions between application clients and application data – Acts as intermediary between data in information tier and application clients
  • 10. 10 System Architecture • Middle tier, cont. – Controller logic • Processes client requests from top tier • Retrieves data from database – Presentation logic • Processes data from information tier • Presents content to client – Business logic • Enforces business rules – Dictates how clients can access application data and how applications process data • Ensures data validity before updating database
  • 11. 11 Accessing Web Server • Requesting documents – Must know machine name on which Web server resides – Through local Web servers or remote Web servers – Through domain name or Internet Protocol (IP) address • Local Web server – Resides on users’ machines – Requests documents in two ways • Machine name • localhost – Host name that references local machine
  • 12. 12 Accessing Web Server • Remote Web server – Resides on different machines – Accessing resources on remote web server requires • Domain name – Represents group of hosts on Internet – Combines with how name (www) and top-level domain to from fully qualified host name • Fully qualified host name – Provides user friendly way to identify site on Internet • IP address – Unique address for locating computers on Internet • DNS (see notes)
  • 13. 13 Examples of Web Servers • Apache (Apache group) • Tomcat (Apache group) • IIS (Microsoft Internet Information Services) • PWS (Microsoft Personal Web Server)
  • 14. 14 Apache web server • Apache – Maintained by Apache Software Foundation – Currently most popular Web server • Stable • Efficient • Portable • (got it’s name from the original developers who called it ‘a patchy server’)
  • 15. 15 Apache web server • Open source – Freely distributed on the Internet – Huge amount of end-user support – Has earned the reputation of being one of the most reliable web server available • Uses server modules to add functionality to the core HTTP server – i.e. extra services that it can provide (e.g. security authentication)
  • 16. 16 Apache web server • To launch Apache, successively select – Start, Programs, Apache httpd Server, Control Apache Server and Start
  • 17. 17 Tomcat web server • Tomcat – Similar to Apache and also maintained by Apache Software Foundation – Fast becoming a popular Web server – Built in Servlet container (engine) – Requires no add-ons to support Servlets
  • 18. 18 Tomcat web server • To launch Tomcat, successively select – Start, Programs, Apache Tomcat 4.x and Start Tomcat
  • 19. 19 Internet Information Services (IIS) web server • Developed by Microsoft • IIS 5.0 – Enterprise-level Web server – Included with Windows 2000 – Allows computer to serve documents • Uses an Internet Services Manager to administrate – see diagram
  • 20. 20 Internet Information Services (IIS) web server Internet Services Manager dialog.
  • 21. 21 Personal Web Server (PWS) • PWS developed by Microsoft • PWS – Scaled-down version of IIS – Intended for personal computers (PC) – Ideal for educational institutions, small businesses and individuals – Does not require PC to be used exclusively as Web server – A Personal Web Manager is used to administrate it
  • 22. 22 Personal Web Server Personal Web Manager dialog.
  • 23. 23 References • Check out – http://www.apache.org • Apache and Tomcat documentation • Apache and Tomcat are free to download and install – http://www.microsoft.com • IIS and PWS documentation
  • 24. 24 Summary • We have looked at: – Introduction to web servers – HTTP request types – 3-tier system architecture – Accessing a web server (local and remote) – Web server examples