HP Open Source Middleware Stacks Blueprints: LAMP Architecture on HP ProLiant BladeSystem Servers on SLES

4. Restart Apache by entering the following:
# /etc/init.d/apache2 restart
5. Perform the test by navigating to the Web site located at:
https://<YOUR_HOSTNAME>
The certificate is displayed as shown in Figure 5.
Figure 5 SSL-Enabled Apache
Apache Web 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 directory for TESTNAME using
the password PASSWORD has been granted.
Creating an index.html File
Use the following procedure to create the index.html file:
1. Create the test HTML file:
/srv/www/htdocs/test/index.html
2. 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 default-server.conf file using the following steps:
1. Edit the /etc/apache2/default-server.conf file:
Secure the Web Server Stack 23