Understanding Course Web Server - URLs and Files

  • Due Sep 11, 2018 at 11:59pm
  • Points 5
  • Questions 5
  • Available Sep 4, 2018 at 12:15pm - Dec 18, 2018 at 11:59pm
  • Time Limit None
  • Allowed Attempts Unlimited

Instructions

How URLs map to files on cs12students.dce.harvard.edu. The course web server maps an incoming URL path to a path on the file system. For the questions below, provide the missing piece of information (either the fully qualified URL, or the full disk path). An example is given for the user "jharvard":

  • URL:
    http://cs12students.dce.harvard.edu/~jharvard/primates/lemurs.html
  • DIsk path:
    /home/courses/j/h/jharvard/public_html/primates/lemurs.html

The key thing to recognize is that the ~jharvard in the URL maps to "jharvard's" public_html directory.

The other thing to recognize is that "public_html" will never be part of the URL. Think of the web server as being restricted to your "public_html" directory -- anything you want served up on the web goes in the "public_html" directory, and files that aren't in the "public_html" won't be accessible by the web server. So the "~jharvard" in the URL maps to jharvard's "public_html".

You can retake this quiz as many times as you want -- your highest score will count!

Only registered, enrolled users can take graded quizzes