Beruflich Dokumente
Kultur Dokumente
Applications
Dr. Curtis Gittens
Lecture II
Learning Objectives
By the end of this lecture you will be able to:
Describe the process Apache uses to retrieve files
when a user makes a request
Describe the two main directives involved in file
retrieval
Describe how the UserDir directive works to make a
users directory Web accessible
Differentiate between the DocumentRoot and
DirectoryIndex directives
Differentiate between the different methods for
accessing files that are outside the document root
Differentiate absolute from relative paths
2
1
2
Apache server
listens on port 80
for request
Server passes
default file back 7
to user
6
Fetches the file
Looks at the
DirectoryIndex
directive for a default
file to display if a
directory is
5
requested
OR
Server receives
request, checks its
configuration file
httpd.conf for the
document root
Adds the URL-Path to the 4
end of the DocumentRoot
indicated in the httpd.conf
file
4
The Directives
Clear as Mud?
Write down
two things
from the
lecture so far
that are the
most unclear
to you. If there
is nothing,
then say that
as well.
Be prepared
to share!
1. Explain the difference between the DocumentRoot and the DirectoryIndex directive
2. Write down what you can remember about how Apache retrieves files based on a
users request
11
12
13
14
15
16
17
18
1. Go to the user, dgittens subdirectory and view its contents where we see the
public_html subdirectory
2. View the contents of the public_html directory
19
20
21
22
23
Summary
In this lecture we:
Described how Apache retrieve files when a user
makes a request
Described the two main directives involved in file
retrieval
Described how the UserDir directive works to make
a users directory Web accessible
Discussed how the DocumentRoot and
DirectoryIndex directives differ
Examined the different methods for accessing files
that are outside the document root
Discuss how absolute and relative paths differ
24