Multiple Websites on a single Host

Have you ever stopped how shared Hosting service providers put multiple websites with different domain names on a single host and single IP? They usually call it shared webhosting in contrast with dedicated servers, if you are curious to find out how it works read this PDF.