Sams Teach Yourself Creating Web Pages All in One

How Web Servers Work

Web servers are at the heart of the Web, and when you build web pages, you're going to spend time with servers. So you should get to know one before you visit. Web servers can be any kind of computer. They can be Windows-based PCs, Macintoshes, or computers that run the Unix operating system, or a popular variant of Unix called Linux. These servers run software called web server softwarethe software that speaks HTTP.

Every server on the Web has its own unique number, called an IP address , such as 130.94.155.164. There's no way for human beings to remember every single number of every single website, so the server also has a domain associated with it, such as gralla.com. When you type in the address of the website, special servers on the Internet called DNS server s translate that address into an IP address, and your web browser goes to the right location.

KEY TERM

IP address A unique number, such as 63.240.93.138, that identifies a computer on the Internet. In order for a computer to be connected to the Internet, it must have an IP address.

KEY TERM

DNS (Domain Naming Service) server An Internet server that translates web addresses such as www.samspublishing.com to 63.240.93.138. When you type in a web address, the request is first sent to a DNS server, which translates the address into an IP address. Your computer then uses the IP address to contact the website you want to visit.

You won't be running a web server yourself. Instead, a company called a hosting service or an Internet service provider (ISP) runs the servers.

For someone to visit a website you build, you'll have to put onto the server the files that make up the site. There are two primary ways to do this:

Категории