Web server

4,974 views

Published on

Web server

  1. 1. < Web Server /> By Touhid Arastu http://ara stu .ir
  2. 2. Web Server Refer ToSoftware & Hardware
  3. 3. Web Server In common helps to deliver contentthat can be accessed through the Internet.
  4. 4. • NeXTSTEP Create in Next company• Tim Berners-Lee Develop First Web Server In Cern
  5. 5. In 1989the worlds first web serverlater known as CERN httpd which ran on NeXTSTEP.
  6. 6. How to work?
  7. 7. Web Server Application Run As Process In OS Web server OS
  8. 8. Web Server Listen To Special Port, ex 80 Web Server 80
  9. 9. When Request Received, Handle It. Web Server Handel Response RequestRequest
  10. 10. Create Response And Sent Back It To Client Web Server Handel Response RequestRequest
  11. 11. HandlePath Translation Request
  12. 12. Web servers are able to map the path component of a Uniform Resource Locator (URL)• a local file system resource => •Static Request• an internal or external program name => •Dynamic request
  13. 13. URL Structurescheme://domain:port/path?query_string#fragment_id http://arastu.ir/slides/ilug/web_server.pdf
  14. 14. Web Server Append The Given Path To The Path Of Its Root DirectoryRoot Directory Specified With Web Server Configs
  15. 15. http://arastu.ir/slides/ilug/web_server.pdf/home/arastu/www/arastu.ir/slides/ilug/web_server.pdf
  16. 16. Based On Web Server Configs, CreateResponse Dynamically Or Return Static file. If Error acquired, Return Error.Dynamic Content Create With Server Side Programming language
  17. 17. Handle Connections
  18. 18. When Request Received Web Server:• Create A New Process In Os• Fork A New Thread• Use One Thread For AllConnection
  19. 19. Comparison Use Server resourceStart Process > Fork New Thread > One Thread for All Connection
  20. 20. Comparison Using Web Server In Internet, March 2011 Product Vendor Web Site Hosted Percent Apache Apache 179,270, 332 60.31% IIS Microsoft 57,644,692 19.34% Nginx Igor Sysoev 22,806,060 7.65% GWS Google 15,161,530 5.09% Lighttp Lighttp 1,796,471 0.60%
  21. 21. Other Common FeatureVirtual HostingLarge file support
  22. 22. Any Question? Download This Slide At:http://arastu.ir/slides/ilug/web_server.pdf

×