Finally we will implement
authentication mechanisms, although we will discuss the details of this later in
this chapter.
Now we can tackle the much bigger task of configuring Apache to our requirements.
Although this could be tackled as a whole, we are going to break it down into pieces
so that we understand what each part does.
First we need to open the configuration file in a text editor ready to configure it. For
Microsoft Windows this file is C:\Program Files\Apache Group\Apache2\conf\
httpd.conf while for Ubuntu and Debian we will be using /etc/apache2/sitesavailable/
default.
Enabling dav_fs
The instructions will diverge depending on the platform chosen.
For Microsoft Windows we need to edit our configuration file as follows:
1. Remove the leading comment marker (# ) from line 164.
2. Save the file.
For Ubuntu and Debian we need to execute the follow command as root:
1. a2enmod dav_fs
Both have the same result of enabling the dav_fs module.
Getting Apache to recognize our configuration changes
Apache reads its configuration files at startup and then ignores them. This
means that we can change configuration settings while it is running, but
we have to force it to use those changes. Although you can get it to reload
the files, if you are making major changes the easiest way is to simply
restart it.
Pages:
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56