f2e06466f0e27e51109e0c371de001e3.ppt
- Количество слайдов: 11
Web Servers (IIS and Apache) Outline 9. 1 9. 2 9. 3 9. 4 9. 5 9. 6 Introduction HTTP Request Types System Architecture Client-Side Scripting versus Server-Side Scripting Accessing Web Servers Web Resources 1
Objectives l In this lesson, you will learn: l l l To understand a Web server’s functionality. To introduce Microsoft Internet Information Services (IIS) and Apache Web server. To learn how to request documents from a Web server. 2
9. 1 Introduction l Web server: Responds to client requests by providing resources l URI (Uniform Resource Identifier) l Web server and client communicate with platformindependent Hypertext Transfer Protocol (HTTP) 3
Web servers discussed in this chapter. 4
9. 2 HTTP Request Types l get : l l Get (retrieves) information from a server i. e: retrieve HTML document or image, fetch search results Sends information as part of URL l www. search-engine. com/search? name=value post: l l l Post (sends) data to a server i. e: authentication information, form data. Sends form data as an HTTP message, not as part of URL 5
l Browsers often cache (save on disk) Web pages l l l Quickly reload the page (speed up browsing experience) Browser asks the server if the document has changed or expired If not, the browser loads the document from the cache 6
9. 3 System Architecture l Multi-tier application (n-tier application): l Information tier (data or bottom tier) l l l Middle tier l l l Maintains data for the application Stores data in a relational database management system (RDBMS) Implements business logic and presentation logic Control interactions between application clients and application data Client tier (top tier) l l Application’s user interface Users interact directly with the application through the client tier 7
Client tier (top tier) Middle tier Information tier (data or bottom tier) 8
9. 4 Client-Side Scripting versus Server. Side Scripting l Client-side scripts l l l Validate user input Reduce requests needed to be passed to server Access browser Java. Scipt, VBScript Server-side scripts l l Executed on server Generate custom response for clients Wide range of programmatic capabilities Access to server-side software that extends server functionality 9
9. 5 Accessing Web Servers l Request documents from Web servers l l know the Host names Local Web servers l l Remote Web servers l l Access through machine name or localhost Access through machine name Domain name or Internet Protocol (IP) address l Domain name server (DNS): Computer that maintains a database of host names and their corresponding IP address 10
9. 6 Web Resources l l l l l www. microsoft. com/msdownload/ntoptionpack/askwiz. asp www. w 3. org/Protocols www. apache. org httpd. apache. org/docs-2. 0 www. apacheweek. com linuxtoday. com/stories/18780. html www. iisanswers. com www. iisadministrator. com 11
f2e06466f0e27e51109e0c371de001e3.ppt