5.Perform the test by navigating to the website located at: https://<YOUR_HOSTNAME>

Verify that the certificate is displayed as in Figure 15:

Figure 15 SSL_Enabled Apache

Apache HTTP Server Authorization

The Apache default document root is:

/srv/www/htdocs

A directory named test must exist in the document root directory. In the following sections, access to the test directory is restricted, and that access to the user directory for TESTNAME using the password PASSWORD has been granted.

Creating a Test index.html File

Create the following test HTML file:

/srv/www/htdocs/test/index.html

Add the following lines to the preceding file:

<HTML>

<HEAD></HEAD> <BODY DIR="LTR">

<P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif">

<FONT SIZE=6>The Authentication and Authorization worked !</FONT> </FONT></P>

</BODY>

</HTML>

Configuring the Authorized Overrides

To authorize overrides, configure the httpd.conf file allow using the following steps:

1.Edit the following file:

/etc/apache2/default-server.conf

2.Find the following data item for the directory /srv/www/htdocs in the preceding file:

AllowOverride None.

3.Modify the value of the data item as follows: AllowOverride AuthConfig.

Installing, Configuring, and Managing Web Server Middleware Stack Components 43