Project

General

Profile

1
<IfModule mod_ssl.c>
2
NameVirtualHost *:443
3
<VirtualHost *:443>
4
        DocumentRoot /var/lib/tomcat6/webapps/knb
5

    
6
        ScriptAlias /knb/cgi-bin/ /var/lib/tomcat6/webapps/knb/cgi-bin/
7
        <Directory "/var/lib/tomcat6/webapps/knb/cgi-bin/">
8
                AllowOverride All
9
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
10
                Order allow,deny
11
                Allow from all
12
        </Directory>
13

    
14
        <IfModule mod_jk.c>
15
                JkMount /knb ajp13
16
                JkMount /knb/* ajp13
17
                JkMount /knb/metacat ajp13
18
                JkMount /*.jsp ajp13
19
                JkUnMount /knb/cgi-bin/* ajp13
20
        </IfModule>
21
        
22
        #   SSL Engine Switch:
23
        #   Enable/Disable SSL for this virtual host.
24
        SSLEngine on
25
        
26
        #   A self-signed (snakeoil) certificate can be created by installing
27
        #   the ssl-cert package. See
28
        #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
29
        #   If both key and certificate are stored in the same file, only the
30
        #   SSLCertificateFile directive is needed.
31
        SSLCertificateFile /etc/ssl/certs/<your_cert_name>.crt
32
        SSLCertificateKeyFile /etc/ssl/private/<your_cert_name>.key
33
        
34
        #   Certificate Authority (CA):
35
        #   Set the CA certificate verification path where to find CA
36
        #   certificates for client authentication or alternatively one
37
        #   huge file containing all of them (file must be PEM encoded)
38
        #   Note: Inside SSLCACertificatePath you need hash symlinks
39
        #         to point to the certificate files. Use the provided
40
        #         Makefile to update the hash symlinks after changes.
41
        SSLCACertificatePath /etc/ssl/certs/
42
        #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
43
        
44
        #   Client Authentication (Type):
45
        #   Client certificate verification type and depth.  Types are
46
        #   none, optional, require and optional_no_ca.  Depth is a
47
        #   number which specifies how deeply to verify the certificate
48
        #   issuer chain before deciding the certificate is not valid.
49
        <Location /knb/servlet/replication>
50
                SSLVerifyClient require
51
                SSLVerifyDepth  10
52
        </Location>
53

    
54
</VirtualHost>
55
</IfModule>
56
        
(6-6/8)