Cisco Headend System Release 2.7 Guide De Montage

Page de 138
 
 
 
Enable the Secure Socket Layer (SSL) with Apache2 
 
4036043 Rev B 
113 
 
5  Add a new Location and Import directive within the <VirtualHost *:443> 
directive, just before the </VirtualHost> line. The changes should look like the 
following example: 
<VirtualHost *:443>
 
 
# contents omitted below
 
 
.
 
 
.
 
 
<Location />
 
            Order Deny,Allow
 
            Allow from localhost
 
            Allow from dncs
 
            Deny from all
 
            ErrorDocument 403 "<html><head><title>Error 
403</title></head><body><h2>SECURITY WARNING</h2>Web 
connections are only allowed from localhost.</body></html>"
 
     
</Location>
 
 
Include /etc/apache2/conf/*.https
 
</VirtualHost>
 
6  Test the configuration changes, before the Apache service is refreshed, by typing 
the following command and then pressing Enter
Important:  The message Syntax OK should then appear. 
/usr/apache2/bin/httpd -t
 
7  Follow these instructions to restart the Apache2 service. 
a  Type 
svcadm refresh apache2
 and then press Enter
b  Type 
svcadm clear apache2
 and then press Enter
Note:  If the Apache service is not in an error state, you will see the following 
message: 
svcadm: Instance "svc:/network/http:apache2" is not in a 
maintenance or degraded state.
 
c  Type 
svcadm enable apache2
 and then press Enter
8  Type cd  /etc/opt/certs and then press Enter