Virtual Hosting Services SAS Lecture 7
Topik Bagaimana website yang berbeda-beda dapat di “virtually hosted” pada satu server? Bagaimana Membuat web site lebih reliable dalam traffic yang sangat tinggi
Hosting services Ada yang bisa menjelaskan hosting services ?
Contoh Sederhana Web Hosting client Internet Irene’s ISP www.joes-hardware.com www.cajun-gifts.com www.marys-antiques.com www.irenes-isp.com Content Mary Joe
Virtual Hosting Apa itu virtual hosting ?
Virtual Hosting Irene’s ISP client Internet Content www.joes-hardware.com www.cajun-gifts.com www.marys-antiques.com www.irenes-isp.com Content Mary Joe
Virtual Server, Kurangnya informasi host Client A Client B Internet (A getting http://www.joes- hardware.com/index.html) GET /index.html HTTP/1.0 User-agent: SuperBrowser v1.3 www.voting-info.gov www.joes-hardware.com www.marys-antiques.com User-agent: WebSurfer 2000 (B getting http://www.marys- antiques.com/index.html) HTTP/1.0 requests do not contain hostname information, so they do not support web servers that host multiple web sites. (HTTP/1.1 supports a Host header to fix this problem) /voting /mary /joe
Membuat Virtual Hosting Virtual hosting dengan URL path Virtual hosting dengan port number Virtual hosting dengan IP address Virtual hosting dengan Host header
Virtual hosting dengan URL path http://www.joes-hardware.com/joe/index.html http://www.marys-antiques.com/mary/index.html The problem?
Virtual hosting dengan port number Install banyak HTTP servers listens 80 listens 81, and so on. The problem?
Virtual hosting dengan IP address Multiple IPs dipasang pada single computer. 1 IP 1 host. The problem?
Virtual hosting dengan IP address Client A Client B Internet /voting /mary /joe www.voting-info.gov=209.172.34.2 www.joes-hardware.com=209.172.34.3 www.marys-antiques.com=209.172.34.4 209.172.34.3 209.172.34.4 Dest IP address Directory 209.172.34.2 /voting 209.172.34.3 /joe 209.172.34.4 /mary
Virtual hosting dengan Host header HTTP/1.1 solution Menggunakan satu IP, satu port untuk menyediakan request ke hosts yang berbeda- beda.
Virtual hosting dengan Host header (A getting http://www.joes- hardware.com/index.html) www.voting-info.gov www.joes-hardware.com www.marys-antiques.com GET /index.html HTTP/1.1 User-agent: SuperBrowser v1.3 Host: www.joes-hardware.com Internet Client A /voting /mary /joe GET /index.html HTTP/1.1 User-agent: WebSurfer 2000 Host: marys-antiques.com Client B The HTTP Host header carries the hostname information that would otherwise be lost in normal server requests,allowing name-based virtual hosting (B getting http://www.marys-antiques.com/index.html)