Web Server - Quiz Explanation

The correct answers are indicated below, along with text that explains the correct answers.
 
1. You have only one machine running Linux and Apache Server, and two IP addresses that resolve to different names (www.company1.com and www.company2.com). You wish to have two distinct Web sites. What options are available to you?
Please select the best answer.
  A. Create virtual directories so that the sites can serve documents separately.
  B. Create a virtual server, then bind both IP addresses to it.
  C. Create a total of two virtual servers on the system, and bind an IP address to each.
  D. Get another box and serve each site separately.
  C is the correct answer.
Most enterprise-grade systems allow you to create virtual servers. In this case, you can bind an IP address to each server. Users will be able to access each site as if the sites were completely separate. A is incorrect, because a virtual directory does notallow you to serve up sites as if they were completely separate. B is incorrect because you would end up using two IP addresses with only one virtual server. D is incorrect because even though you can use two boxes to serve up one site each, the question stipulates that you have only one box to work with.

2. Several users call, complaining that they can not access the search page. You fire up your browser, access the site with the correct URL, and get a 404 error. What is the nature of such an error?
Please select the best answer.
  A. It is telling you that there is an internal error.
  B. It reports that the server is overworked.
  C. It reports that the document is not found using that particular URL.
  D. It reports that access is denied.
  C is the correct answer.
A 404 error tells you that the server cannot find this HTML page at the location specified in the URL sent by the client. A 500 error indicates that the server is overworked or that there was an internal server error. A 401 series error reports that access was denied due to failed authentication.
3. You wish to use your Web server to serve up a document not directly beneath the Web server root. What do you need to do?
Please select the best answer.
  A. Create a virtual server
  B. Create a virtual directory
  C. Install IIS
  D. Install Apache Server
  B is the correct answer.
A virtual directory allows you to serve up pages from any place on a system's hard drive using an existing Web server. Installing IIS or Apache Server will not necessarily allow you to serve up a document not directly beneath the Web server root. A virtual server creates an entirely new instance of a Web server, rather than allowing you to present an individual page within an already-existing site, so A is incorrect.